1
0
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:
Mike Robinson 2014-10-04 19:00:09 +01:00
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];
}