src/events/SDL_keyboard.c
changeset 4729 1f7ad083fd3c
parent 4567 1d7ea8724f4a
parent 4713 ba38983b10c2
child 4762 833a225613e2
     1.1 --- a/src/events/SDL_keyboard.c	Sun Aug 22 12:07:55 2010 -0700
     1.2 +++ b/src/events/SDL_keyboard.c	Sun Aug 22 12:23:55 2010 -0700
     1.3 @@ -729,7 +729,7 @@
     1.4          break;
     1.5      default:
     1.6          /* Invalid state -- bail */
     1.7 -        return 0;
     1.8 +        return 2;
     1.9      }
    1.10  
    1.11      /* Drop events that don't change state */
    1.12 @@ -738,14 +738,14 @@
    1.13  #if 0
    1.14          printf("Keyboard event didn't change state - dropped!\n");
    1.15  #endif
    1.16 -        return 0;
    1.17 +        return 3;
    1.18      }
    1.19  
    1.20      /* Update internal keyboard state */
    1.21      keyboard->keystate[scancode] = state;
    1.22  
    1.23      /* Post the event, if desired */
    1.24 -    posted = 0;
    1.25 +    posted = 4;
    1.26      if (SDL_GetEventState(type) == SDL_ENABLE) {
    1.27          SDL_Event event;
    1.28          event.key.type = type;