Add missing keycode in the SDL2 backend

This commit is contained in:
Cameron Cawley 2021-07-05 17:12:17 +01:00 committed by GitHub
parent b1781f4189
commit 7b6bfd60f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ static int keyCodeToSkKey(SDL_Keycode keycode) {
case SDLK_INSERT: return KEY_INS; case SDLK_INSERT: return KEY_INS;
case SDLK_DELETE: return KEY_DEL; case SDLK_DELETE: return KEY_DEL;
case SDLK_RIGHT: return KEY_RIGHT; case SDLK_RIGHT: return KEY_RIGHT;
case SDLK_LEFT: return KEY_LEFT;
case SDLK_DOWN: return KEY_DOWN; case SDLK_DOWN: return KEY_DOWN;
case SDLK_UP: return KEY_UP; case SDLK_UP: return KEY_UP;
case SDLK_PAGEUP: return KEY_PGUP; case SDLK_PAGEUP: return KEY_PGUP;