diff src/events/SDL_keyboard.c @ 4729:1f7ad083fd3c

Merged Paul's Google Summer of Code work from SDL-gsoc2010_android
author Sam Lantinga <slouken@libsdl.org>
date Sun, 22 Aug 2010 12:23:55 -0700
parents 1d7ea8724f4a ba38983b10c2
children 833a225613e2
line wrap: on
line diff
--- a/src/events/SDL_keyboard.c	Sun Aug 22 12:07:55 2010 -0700
+++ b/src/events/SDL_keyboard.c	Sun Aug 22 12:23:55 2010 -0700
@@ -729,7 +729,7 @@
         break;
     default:
         /* Invalid state -- bail */
-        return 0;
+        return 2;
     }
 
     /* Drop events that don't change state */
@@ -738,14 +738,14 @@
 #if 0
         printf("Keyboard event didn't change state - dropped!\n");
 #endif
-        return 0;
+        return 3;
     }
 
     /* Update internal keyboard state */
     keyboard->keystate[scancode] = state;
 
     /* Post the event, if desired */
-    posted = 0;
+    posted = 4;
     if (SDL_GetEventState(type) == SDL_ENABLE) {
         SDL_Event event;
         event.key.type = type;