#704 fixed BACK button on Android

This commit is contained in:
Vadim Grigoruk 2018-08-24 22:24:20 +03:00
parent 408100744f
commit 1f748f52aa
1 changed files with 4 additions and 2 deletions

View File

@ -478,8 +478,10 @@ static void processKeyboard()
for(s32 i = 0; i < SDL_NUM_SCANCODES; i++) for(s32 i = 0; i < SDL_NUM_SCANCODES; i++)
{ {
if(keyboard[i]) if(keyboard[i])
{ {
SDL_Keycode keycode = SDL_GetKeyFromScancode(i); SDL_Keycode keycode = i == SDL_SCANCODE_AC_BACK
? SDLK_ESCAPE
: SDL_GetKeyFromScancode(i);
for(s32 k = 0; k < COUNT_OF(KeyboardCodes); k++) for(s32 k = 0; k < COUNT_OF(KeyboardCodes); k++)
{ {