From 58c5cc6f46ce07581e221c6e2213a76701bf19e6 Mon Sep 17 00:00:00 2001 From: Diablodiab Date: Fri, 29 Apr 2016 00:42:09 +0200 Subject: [PATCH] Change ALooper_pollAll in android_input_poll from a non blocking call into a 1 ms blocking call. For some reason this allows more input events to queue up in the input queue for processing making it easier to press multiple gamepad buttons and have it register within a single frame. --- input/drivers/android_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/drivers/android_input.c b/input/drivers/android_input.c index b83da30e97..7de8fdea33 100644 --- a/input/drivers/android_input.c +++ b/input/drivers/android_input.c @@ -1044,7 +1044,7 @@ static void android_input_poll(void *data) while ((ident = ALooper_pollAll((input_driver_ctl(RARCH_INPUT_CTL_KEY_PRESSED, &key)) - ? -1 : 0, + ? -1 : 1, NULL, NULL, NULL)) >= 0) { switch (ident)