1
0
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:
Tony 2022-02-24 08:10:47 +02:00 committed by GitHub
parent 7768c296b9
commit f0d9add1b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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);
}

View File

@ -500,6 +500,7 @@ static LRESULT CALLBACK winraw_callback(
/* Ignored scancodes */
switch (mcode)
{
case RETROK_UNKNOWN:
case 0xE11D:
case 0xE02A:
case 0xE036: