• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Controllers v
« Previous 1 ... 126 127 128 129 130 ... 320 Next »

Phantom button presses on Logitech Cordless Rumlepad 2
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Phantom button presses on Logitech Cordless Rumlepad 2
12-09-2015, 09:08 AM
#1
Seol
Unregistered
 
Hi all,

When playing games in Dolphin (4.0-8199 x64, Windows) using my venerable Logitech Cordless Rumlepad 2, occasionally the emu registers button presses that I didn't press (it only happens with Dolphin, it's not a hardware problem with the gamepad). Having a look at the source (DInputJoystick.cpp), it looks like the button press test code:

Code:
ControlState Joystick::Button::GetState() const
{
return ControlState(m_button > 0);
}

should be:

Code:
ControlState Joystick::Button::GetState() const
{
return ControlState((m_button & 0x80) > 0);
}

as per the DirectInput reference (the other bits are undefined, but usually 0, I think). Unfortunately I don't have VS2015 installed to test it right now, might get enough time to set it up in a week or so.

Cheers!
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode