Send appropriate PC scancodes for key events

This commit is contained in:
pelya
2013-11-05 05:33:40 +02:00
parent 5320d1b9d5
commit 2275b2cbd8
5 changed files with 333 additions and 2 deletions

View File

@@ -165,6 +165,8 @@ extern void SDL_ANDROID_MainThreadPushKeyboardKey(int pressed, SDL_scancode key)
}
keysym.scancode = key;
if ( key < SDLK_LAST )
keysym.scancode = SDL_android_keysym_to_scancode[key];
keysym.sym = key;
keysym.mod = KMOD_NONE;
keysym.unicode = 0;