src/joystick/SDL_gamecontroller.c
changeset 8976 1a5d959d7b32
parent 8972 dfc759d7486f
child 9194 583176c5982f
     1.1 --- a/src/joystick/SDL_gamecontroller.c	Sun Jul 06 20:41:39 2014 -0700
     1.2 +++ b/src/joystick/SDL_gamecontroller.c	Mon Jul 07 10:26:28 2014 -0700
     1.3 @@ -258,10 +258,12 @@
     1.4   */
     1.5  ControllerMapping_t *SDL_PrivateGetControllerMapping(int device_index)
     1.6  {
     1.7 +#if SDL_JOYSTICK_XINPUT
     1.8      if (SDL_SYS_IsXInputGamepad_DeviceIndex(device_index) && s_pXInputMapping) {
     1.9          return s_pXInputMapping;
    1.10      }
    1.11      else
    1.12 +#endif /* SDL_JOYSTICK_XINPUT */
    1.13      {
    1.14          SDL_JoystickGUID jGUID = SDL_JoystickGetDeviceGUID(device_index);
    1.15          return SDL_PrivateGetControllerMappingForGUID(&jGUID);