src/joystick/android/SDL_sysjoystick.c
changeset 8274 8b1f8feb42a6
parent 8149 681eb46b8ac4
child 8583 fb2933ca805f
     1.1 --- a/src/joystick/android/SDL_sysjoystick.c	Sat Mar 01 11:42:12 2014 -0800
     1.2 +++ b/src/joystick/android/SDL_sysjoystick.c	Sat Mar 01 12:21:15 2014 -0800
     1.3 @@ -379,11 +379,11 @@
     1.4  int
     1.5  SDL_SYS_JoystickInit(void)
     1.6  {
     1.7 -    const char *env;
     1.8 +    const char *hint;
     1.9      SDL_SYS_JoystickDetect();
    1.10      
    1.11 -    env = SDL_GetHint(SDL_HINT_ACCEL_AS_JOY);
    1.12 -    if (!env || SDL_atoi(env)) {
    1.13 +    hint = SDL_GetHint(SDL_HINT_ACCELEROMETER_AS_JOYSTICK);
    1.14 +    if (!hint || SDL_atoi(hint)) {
    1.15          /* Default behavior, accelerometer as joystick */
    1.16          Android_AddJoystick(ANDROID_ACCELEROMETER_DEVICE_ID, ANDROID_ACCELEROMETER_NAME, SDL_TRUE, 0, 3, 0, 0);
    1.17      }