(Android) android_run_events - change signature
This commit is contained in:
parent
fed293b6e7
commit
9a1c90a554
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue