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;