src/video/x11/SDL_x11events.c
changeset 4560 95352c671a6e
parent 4558 4d95152d9e39
child 4565 e2d46c5c7483
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue Jul 20 00:57:01 2010 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue Jul 20 23:25:24 2010 -0700
     1.3 @@ -182,7 +182,8 @@
     1.4  #ifdef DEBUG_XEVENTS
     1.5              printf("KeyPress (X11 keycode = 0x%X)\n", xevent.xkey.keycode);
     1.6  #endif
     1.7 -            SDL_SendKeyboardKey(SDL_PRESSED, videodata->key_layout[keycode]);
     1.8 +            /* FIXME: How do we tell if this was a key repeat? */
     1.9 +            SDL_SendKeyboardKey(SDL_PRESSED, videodata->key_layout[keycode], SDL_FALSE);
    1.10  #if 1
    1.11              if (videodata->key_layout[keycode] == SDLK_UNKNOWN) {
    1.12                  int min_keycode, max_keycode;
    1.13 @@ -217,7 +218,7 @@
    1.14  #ifdef DEBUG_XEVENTS
    1.15              printf("KeyRelease (X11 keycode = 0x%X)\n", xevent.xkey.keycode);
    1.16  #endif
    1.17 -            SDL_SendKeyboardKey(SDL_RELEASED, videodata->key_layout[keycode]);
    1.18 +            SDL_SendKeyboardKey(SDL_RELEASED, videodata->key_layout[keycode], SDL_FALSE);
    1.19          }
    1.20          break;
    1.21