mirror of
https://github.com/libretro/RetroArch
synced 2024-07-08 12:15:49 +00:00
(DInput/WinRaw) Ignore 'unknown/undefined' key (#13660)
This commit is contained in:
parent
7768c296b9
commit
f0d9add1b2
|
@ -265,9 +265,14 @@ static void dinput_poll(void *data)
|
|||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Shifts only when window focused */
|
||||
dinput_keyboard_mods(di, RETROKMOD_SHIFT);
|
||||
|
||||
/* Ignore 'unknown/undefined' key */
|
||||
di->state[RETROK_UNKNOWN] = 0;
|
||||
}
|
||||
|
||||
/* Left alt keyup when unfocused, to prevent alt-tab sticky */
|
||||
dinput_keyboard_mods(di, RETROKMOD_ALT);
|
||||
}
|
||||
|
|
|
@ -500,6 +500,7 @@ static LRESULT CALLBACK winraw_callback(
|
|||
/* Ignored scancodes */
|
||||
switch (mcode)
|
||||
{
|
||||
case RETROK_UNKNOWN:
|
||||
case 0xE11D:
|
||||
case 0xE02A:
|
||||
case 0xE036:
|
||||
|
|
Loading…
Reference in New Issue
Block a user