mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 03:40:50 +00:00
Fix autodetection of non-connected status pins
This commit is contained in:
parent
aab4f3032a
commit
bf5cbfacee
@ -91,7 +91,7 @@ static void poll_pad(struct parport_joypad *pad)
|
||||
}
|
||||
for (i = 3; i < 8; i++)
|
||||
{
|
||||
pad->buttons[i + 5] = !(status & UINT8_C(1 << i)) && pad->button_enable[i];
|
||||
pad->buttons[i + 5] = !(status & UINT8_C(1 << i)) && pad->button_enable[i + 5];
|
||||
}
|
||||
pad->buttons[12] = pad->buttons[12] ? false : true && pad->button_enable[12];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user