src/events/SDL_keyboard.c
changeset 4429 faa9fc8e7f67
parent 3697 f7b03b6838cb
child 4434 5c64052fb476
     1.1 --- a/src/events/SDL_keyboard.c	Wed Mar 10 15:07:20 2010 +0000
     1.2 +++ b/src/events/SDL_keyboard.c	Thu Mar 25 01:08:26 2010 -0700
     1.3 @@ -688,7 +688,7 @@
     1.4      SDL_Keyboard *keyboard = SDL_GetKeyboard(index);
     1.5      int posted;
     1.6      Uint16 modstate;
     1.7 -    Uint8 type;
     1.8 +    Uint32 type;
     1.9  
    1.10      if (!keyboard || !scancode) {
    1.11          return 0;
    1.12 @@ -800,7 +800,7 @@
    1.13  
    1.14      /* Post the event, if desired */
    1.15      posted = 0;
    1.16 -    if (SDL_ProcessEvents[type] == SDL_ENABLE) {
    1.17 +    if (SDL_GetEventState(type) == SDL_ENABLE) {
    1.18          SDL_Event event;
    1.19          event.key.type = type;
    1.20          event.key.which = (Uint8) index;
    1.21 @@ -827,7 +827,7 @@
    1.22  
    1.23      /* Post the event, if desired */
    1.24      posted = 0;
    1.25 -    if (SDL_ProcessEvents[SDL_TEXTINPUT] == SDL_ENABLE) {
    1.26 +    if (SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE) {
    1.27          SDL_Event event;
    1.28          event.text.type = SDL_TEXTINPUT;
    1.29          event.text.which = (Uint8) index;
    1.30 @@ -845,7 +845,7 @@
    1.31  
    1.32      /* Post the event, if desired */
    1.33      posted = 0;
    1.34 -    if (SDL_ProcessEvents[SDL_TEXTEDITING] == SDL_ENABLE) {
    1.35 +    if (SDL_GetEventState(SDL_TEXTEDITING) == SDL_ENABLE) {
    1.36          SDL_Event event;
    1.37          event.edit.type = SDL_TEXTEDITING;
    1.38          event.edit.start = start;