(Android) android_run_events - change signature

This commit is contained in:
twinaphex 2015-05-02 03:52:28 +02:00
parent fed293b6e7
commit 9a1c90a554
2 changed files with 5 additions and 5 deletions

View File

@ -426,7 +426,7 @@ static void frontend_android_get_environment_settings(int *argc,
#endif
}
bool android_run_events(void *data);
int android_run_events(void *data);
static bool android_input_lookup_name_prekitkat(char *buf,
int *vendorId, int *productId, size_t size, int id)
@ -600,7 +600,7 @@ static void frontend_android_init(void *data)
while (!android_app->window)
{
if (!android_run_events(android_app))
if (android_run_events(android_app) == -1)
return;
}

View File

@ -648,7 +648,7 @@ static void android_input_poll(void *data)
android_main_poll(data);
}
bool android_run_events(void *data)
int android_run_events(void *data)
{
global_t *global = global_get_ptr();
struct android_app *android_app = (struct android_app*)g_android;
@ -660,9 +660,9 @@ bool android_run_events(void *data)
/* Check if we are exiting. */
if (global->system.shutdown)
return false;
return -1;
return true;
return 0;
}
static int16_t android_input_state(void *data,