Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Merged Paul's Google Summer of Code work from SDL-gsoc2010_android

  • Loading branch information
slouken committed Aug 22, 2010
2 parents 18a406d + 7f93737 commit 9d8976e9b4d0338f3abf65a11cd0199c59eaba12

File 28 of 38 in 9d8976e

@@ -729,7 +729,7 @@ SDL_SendKeyboardKey(Uint8 state, SDL_scancode scancode)
break;
default:
/* Invalid state -- bail */
return 0;
return 2;
}

/* 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 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;

0 comments on commit 9d8976e

Please sign in to comment.