Update NDK for pre-key-dispatching changes.

The same code now calls the appropriate function as part of
its key processing.

Change-Id: Ie6fbcd802b098b85d8113fe0a49473134721009b
This commit is contained in:
Dianne Hackborn
2010-07-15 17:48:05 -07:00
parent 3d81d6a2eb
commit e551875b2d
7 changed files with 552 additions and 99 deletions

View File

@@ -133,6 +133,9 @@ static int engine_do_ui_event(struct engine* engine) {
AInputEvent* event = NULL;
if (AInputQueue_getEvent(engine->app->inputQueue, &event) >= 0) {
LOGI("New input event: type=%d\n", AInputEvent_getType(event));
if (AInputQueue_preDispatchEvent(engine->app->inputQueue, event)) {
return 1;
}
if (AInputEvent_getType(event) == INPUT_EVENT_TYPE_MOTION) {
engine->animating = 1;
engine->x = AMotionEvent_getX(event, 0);