git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1302 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-05-04 14:57:02 +00:00
parent 054d81e512
commit 1659102712

View File

@ -189,9 +189,9 @@ int32_t handle_input(struct android_app* app, AInputEvent* event) {
and up events happen most often at the exact same time. This and up events happen most often at the exact same time. This
makes it impossible to animate based on key press time. */ makes it impossible to animate based on key press time. */
/* e.g. down/up/wait/down/up rather than down/wait/down/wait/up */ /* e.g. down/up/wait/down/up rather than down/wait/down/wait/up */
/* This looks like a bug in the virtual keyboard system :/ Real /* This looks like a bug in the Android virtual keyboard system :/
buttons such as the Back button appear to work correctly (series Real buttons such as the Back button appear to work correctly
of down events with proper getRepeatCount value */ (series of down events with proper getRepeatCount value). */
if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_KEY) { if (AInputEvent_getType(event) == AINPUT_EVENT_TYPE_KEY) {
/* LOGI("action: %d", AKeyEvent_getAction(event)); */ /* LOGI("action: %d", AKeyEvent_getAction(event)); */