Cleanup from the Android commit

This commit is contained in:
Sam Lantinga 2010-08-22 12:35:34 -07:00
parent a64fc29cfb
commit 66d40ad333
2 changed files with 3 additions and 14 deletions

View file

@ -729,7 +729,7 @@ SDL_SendKeyboardKey(Uint8 state, SDL_scancode scancode)
break;
default:
/* Invalid state -- bail */
return 2;
return 0;
}
/* Drop events that don't change state */
@ -738,14 +738,14 @@ SDL_SendKeyboardKey(Uint8 state, SDL_scancode scancode)
#if 0
printf("Keyboard event didn't change state - dropped!\n");
#endif
return 3;
return 0;
}
/* Update internal keyboard state */
keyboard->keystate[scancode] = state;
/* Post the event, if desired */
posted = 4;
posted = 0;
if (SDL_GetEventState(type) == SDL_ENABLE) {
SDL_Event event;
event.key.type = type;