mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
linuxraw_joypad.c - Fix button polling
This commit is contained in:
parent
c3c734c159
commit
c756a643dd
@ -59,7 +59,7 @@ static void poll_pad(struct linuxraw_joypad *pad)
|
||||
if (event.number < NUM_BUTTONS)
|
||||
{
|
||||
if (event.value)
|
||||
BIT32_SET(pad->buttons, event.value);
|
||||
BIT32_SET(pad->buttons, event.number);
|
||||
else
|
||||
BIT32_CLEAR(pad->buttons, event.number);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user