From 466b245b6f96182cece409451fe7cb1324bd9ddd Mon Sep 17 00:00:00 2001 From: Xadhoom <> Date: Sat, 26 Jan 2019 00:04:59 +0000 Subject: [PATCH] small fix --- Stub/miniwin_msg_sdl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Stub/miniwin_msg_sdl.cpp b/Stub/miniwin_msg_sdl.cpp index 39b62553a..bcf0b8eff 100644 --- a/Stub/miniwin_msg_sdl.cpp +++ b/Stub/miniwin_msg_sdl.cpp @@ -75,10 +75,11 @@ static int translate_sdl_key(SDL_Keysym key) } } -WPARAM keystate_for_mouse(WPARAM ret) +static WPARAM keystate_for_mouse(WPARAM ret) { const Uint8 *keystate = SDL_GetKeyboardState(NULL); ret |= keystate[SDL_SCANCODE_LSHIFT] ? MK_SHIFT : 0; + ret |= keystate[SDL_SCANCODE_RSHIFT] ? MK_SHIFT : 0; // XXX: other MK_* codes not implemented return ret; }