X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvideo%2Fomapdss%2Fsdlif.c;h=5818462621b4d197b8fe65ba71bc37e4c3c0e0be;hb=b260fb56d8eb049e5dce95a92b5c1189ea29f8b4;hp=7511ee49bfc4bec451fa465aa42fb34fe8a7fad9;hpb=e1837b2c78d48d2811ff77e8702810b7620dd4f8;p=sdl_omap.git diff --git a/src/video/omapdss/sdlif.c b/src/video/omapdss/sdlif.c index 7511ee4..5818462 100644 --- a/src/video/omapdss/sdlif.c +++ b/src/video/omapdss/sdlif.c @@ -233,11 +233,12 @@ static void omap_InitOSKeymap(SDL_VideoDevice *this) trace(); } -static int key_event_cb(void *cb_arg, int sdl_kc, int is_pressed) +static int key_event_cb(void *cb_arg, int sdl_kc, int sdl_sc, int is_pressed) { SDL_keysym keysym = { 0, }; keysym.sym = sdl_kc; + keysym.scancode = sdl_sc; SDL_PrivateKeyboard(is_pressed, &keysym); }