src/joystick/SDL_gamecontroller.c
changeset 12201 8bdc4d340419
parent 12192 f03ca3ab9b30
child 12291 287350656743
equal deleted inserted replaced
12200:c0b17b32b95e 12201:8bdc4d340419
  1025             mapping = s_pXInputMapping;
  1025             mapping = s_pXInputMapping;
  1026         }
  1026         }
  1027     }
  1027     }
  1028 #ifdef __ANDROID__
  1028 #ifdef __ANDROID__
  1029     if (!mapping && name && !SDL_IsJoystickHIDAPI(guid)) {
  1029     if (!mapping && name && !SDL_IsJoystickHIDAPI(guid)) {
  1030 		mapping = SDL_CreateMappingForAndroidController(name, guid);
  1030         mapping = SDL_CreateMappingForAndroidController(name, guid);
  1031     }
  1031     }
  1032 #endif
  1032 #endif
  1033     if (!mapping) {
  1033     if (!mapping) {
  1034         mapping = s_pDefaultMapping;
  1034         mapping = s_pDefaultMapping;
  1035     }
  1035     }