mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-05 03:34:52 +01:00
Fix some possible controller issues.
This commit is contained in:
parent
958ced0edd
commit
c9d97abd5b
2 changed files with 5 additions and 2 deletions
|
|
@ -444,7 +444,7 @@ static void GamepadUpdateDevice(GAMEPAD_DEVICE gamepad) {
|
|||
if (events[i].value) {
|
||||
STATE[gamepad].bCurrent |= BUTTON_TO_FLAG(button);
|
||||
} else {
|
||||
STATE[gamepad].bCurrent ^= BUTTON_TO_FLAG(button);
|
||||
STATE[gamepad].bCurrent &= ~BUTTON_TO_FLAG(button);
|
||||
}
|
||||
break;
|
||||
case EV_ABS:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue