Fix some possible controller issues.

This commit is contained in:
Mr_Goldberg 2020-01-19 01:34:52 -05:00
parent 958ced0edd
commit c9d97abd5b
No known key found for this signature in database
GPG key ID: 8597D87419DEF278
2 changed files with 5 additions and 2 deletions

View file

@ -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: