mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
ignore extended scancodes
This commit is contained in:
parent
e1b58ca683
commit
0ca21ef321
@ -250,11 +250,17 @@ static void linuxraw_input_poll(void *data)
|
||||
{
|
||||
linuxraw_input_t *linuxraw = (linuxraw_input_t*)data;
|
||||
uint8_t c;
|
||||
uint16_t t;
|
||||
|
||||
while (read(0, &c, 1))
|
||||
{
|
||||
bool pressed = !(c & 0x80);
|
||||
c &= ~0x80;
|
||||
|
||||
// ignore extended scancodes
|
||||
if (!c)
|
||||
read(0, &t, 2);
|
||||
|
||||
linuxraw->state[c] = pressed;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user