forked from KolibriOS/kolibrios
Fix getting key code in SDL
git-svn-id: svn://kolibrios.org@6351 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
bd2ce8aeba
commit
ce0a4cfd85
@ -173,7 +173,7 @@ void MenuetOS_PumpEvents(_THIS)
|
|||||||
MenuetOS_SDL_RepaintWnd();
|
MenuetOS_SDL_RepaintWnd();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
key.scancode = get_key;
|
key.scancode = get_key().code;
|
||||||
if (key.scancode == 0xE0 || key.scancode == 0xE1)
|
if (key.scancode == 0xE0 || key.scancode == 0xE1)
|
||||||
{ext_code=key.scancode;break;}
|
{ext_code=key.scancode;break;}
|
||||||
if (ext_code == 0xE1 && (key.scancode & 0x7F) == 0x1D) break;
|
if (ext_code == 0xE1 && (key.scancode & 0x7F) == 0x1D) break;
|
||||||
|
Loading…
Reference in New Issue
Block a user