mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-02 05:16:33 +00:00
(Android) Don't poll accelerometer - no use yet and in case we
want to support something like GBA WarioWare Twisted stuff, we will have to add motion support to libretro anyway - so can be shelved for now
This commit is contained in:
parent
266d1984ee
commit
cd92520983
@ -15,11 +15,6 @@ struct saved_state
|
||||
struct droid
|
||||
{
|
||||
struct android_app* app;
|
||||
|
||||
ASensorManager* sensorManager;
|
||||
const ASensor* accelerometerSensor;
|
||||
ASensorEventQueue* sensorEventQueue;
|
||||
|
||||
bool init_quit;
|
||||
bool window_inited;
|
||||
struct saved_state state;
|
||||
|
@ -156,13 +156,6 @@ void android_main(struct android_app* state)
|
||||
|
||||
g_android.app->onAppCmd = engine_handle_cmd;
|
||||
|
||||
// Prepare to monitor accelerometer
|
||||
g_android.sensorManager = ASensorManager_getInstance();
|
||||
g_android.accelerometerSensor = ASensorManager_getDefaultSensor(g_android.sensorManager,
|
||||
ASENSOR_TYPE_ACCELEROMETER);
|
||||
g_android.sensorEventQueue = ASensorManager_createEventQueue(g_android.sensorManager,
|
||||
g_android.app->looper, LOOPER_ID_USER, NULL, NULL);
|
||||
|
||||
if (g_android.app->savedState != NULL) // We are starting with a previous saved state; restore from it.
|
||||
g_android.state = *(struct saved_state*)g_android.app->savedState;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user