mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-17 08:14:01 +00:00
(Android) Start copying state copy at poll function call
This commit is contained in:
parent
cf1d56dbda
commit
5c5e517b68
@ -91,7 +91,7 @@ typedef struct android_input_state
|
|||||||
|
|
||||||
typedef struct android_input
|
typedef struct android_input
|
||||||
{
|
{
|
||||||
android_input_state_t copy;
|
android_input_state_t copy, thread;
|
||||||
sensor_t accelerometer_state;
|
sensor_t accelerometer_state;
|
||||||
ASensorManager *sensorManager;
|
ASensorManager *sensorManager;
|
||||||
ASensorEventQueue *sensorEventQueue;
|
ASensorEventQueue *sensorEventQueue;
|
||||||
@ -841,7 +841,7 @@ static void android_input_poll(void *data)
|
|||||||
switch (ident)
|
switch (ident)
|
||||||
{
|
{
|
||||||
case LOOPER_ID_INPUT:
|
case LOOPER_ID_INPUT:
|
||||||
android_input_handle_input(&android->copy);
|
android_input_handle_input(&android->thread);
|
||||||
break;
|
break;
|
||||||
case LOOPER_ID_USER:
|
case LOOPER_ID_USER:
|
||||||
android_input_handle_user(data);
|
android_input_handle_user(data);
|
||||||
@ -851,6 +851,8 @@ static void android_input_poll(void *data)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memcpy(&android->copy, &android->thread, sizeof(android->copy));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool android_run_events(void *data)
|
bool android_run_events(void *data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user