mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 09:39:56 +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;
|
linuxraw_input_t *linuxraw = (linuxraw_input_t*)data;
|
||||||
uint8_t c;
|
uint8_t c;
|
||||||
|
uint16_t t;
|
||||||
|
|
||||||
while (read(0, &c, 1))
|
while (read(0, &c, 1))
|
||||||
{
|
{
|
||||||
bool pressed = !(c & 0x80);
|
bool pressed = !(c & 0x80);
|
||||||
c &= ~0x80;
|
c &= ~0x80;
|
||||||
|
|
||||||
|
// ignore extended scancodes
|
||||||
|
if (!c)
|
||||||
|
read(0, &t, 2);
|
||||||
|
|
||||||
linuxraw->state[c] = pressed;
|
linuxraw->state[c] = pressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user