From 85b560e76b28cba9a2ee991093b7272677af836e Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Sat, 5 Jan 2019 19:19:53 -0500 Subject: [PATCH] vc2003 buildfix --- gfx/common/win32_common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index 567b524f31..edb687775f 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -593,11 +593,13 @@ static LRESULT win32_handle_keyboard_event(HWND hwnd, UINT message, keysym = (unsigned)wparam; else #endif +#ifdef HAVE_DINPUT { /* extended keys will map to dinput if the high bit is set */ if (input_get_ptr() == &input_dinput && (lparam >> 24 & 0x1)) keysym |= 0x80; } +#endif /* Key released? */ if (message == WM_KEYUP || message == WM_SYSKEYUP) keydown = false;