Merge pull request #7810 from fr500/master

fix #935 thanks to @bparker
This commit is contained in:
Twinaphex 2018-12-24 01:58:53 +01:00 committed by GitHub
commit 740cf4034e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,8 +591,13 @@ static LRESULT win32_handle_keyboard_event(HWND hwnd, UINT message,
settings_t *settings = config_get_ptr();
if (settings && string_is_equal(settings->arrays.input_driver, "raw"))
keysym = (unsigned)wparam;
else
#endif
{
/* extended keys will map to dinput if the high bit is set */
if (input_get_ptr() == &input_dinput && (lparam >> 24 & 0x1))
keysym |= 0x80;
}
/* Key released? */
if (message == WM_KEYUP || message == WM_SYSKEYUP)
keydown = false;