(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:
twinaphex 2012-10-31 17:32:13 +01:00
parent 266d1984ee
commit cd92520983
2 changed files with 0 additions and 12 deletions

View File

@ -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;

View File

@ -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;