From ce0a4cfd8563a0f65913e25e6f65151c78593541 Mon Sep 17 00:00:00 2001 From: ashmew2 Date: Wed, 16 Mar 2016 13:02:05 +0000 Subject: [PATCH] Fix getting key code in SDL git-svn-id: svn://kolibrios.org@6351 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../sdk/sources/SDL-1.2.2/src/video/menuetos/SDL_menuetevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sdk/sources/SDL-1.2.2/src/video/menuetos/SDL_menuetevents.c b/contrib/sdk/sources/SDL-1.2.2/src/video/menuetos/SDL_menuetevents.c index 06794d3429..b96e3c3775 100644 --- a/contrib/sdk/sources/SDL-1.2.2/src/video/menuetos/SDL_menuetevents.c +++ b/contrib/sdk/sources/SDL-1.2.2/src/video/menuetos/SDL_menuetevents.c @@ -173,7 +173,7 @@ void MenuetOS_PumpEvents(_THIS) MenuetOS_SDL_RepaintWnd(); break; case 2: - key.scancode = get_key; + key.scancode = get_key().code; if (key.scancode == 0xE0 || key.scancode == 0xE1) {ext_code=key.scancode;break;} if (ext_code == 0xE1 && (key.scancode & 0x7F) == 0x1D) break;