(Android) Put AInputQueue_hasEvents while loop back

This commit is contained in:
twinaphex 2015-05-02 07:59:06 +02:00
parent ff6babc22a
commit 4a7fbf728a
1 changed files with 6 additions and 3 deletions

View File

@ -625,10 +625,13 @@ int android_main_poll(void *data)
switch (ident)
{
case LOOPER_ID_INPUT:
while (AInputQueue_getEvent(android_app->inputQueue, &event) >= 0)
while (AInputQueue_hasEvents(android_app->inputQueue))
{
engine_handle_input(android_app, event);
copy_state = true;
if (AInputQueue_getEvent(android_app->inputQueue, &event) >= 0)
{
engine_handle_input(android_app, event);
copy_state = true;
}
}
break;
case LOOPER_ID_USER: