src/joystick/windows/SDL_xinputjoystick.c
changeset 9659 839c0c3bf555
parent 9658 9753468b5c0e
child 9660 b7188b6a6f2a
equal deleted inserted replaced
9658:9753468b5c0e 9659:839c0c3bf555
    18      misrepresented as being the original software.
    18      misrepresented as being the original software.
    19   3. This notice may not be removed or altered from any source distribution.
    19   3. This notice may not be removed or altered from any source distribution.
    20 */
    20 */
    21 #include "../../SDL_internal.h"
    21 #include "../../SDL_internal.h"
    22 
    22 
       
    23 #include "../SDL_sysjoystick.h"
       
    24 
    23 #if SDL_JOYSTICK_XINPUT
    25 #if SDL_JOYSTICK_XINPUT
    24 
    26 
    25 #include "SDL_assert.h"
    27 #include "SDL_assert.h"
    26 #include "SDL_hints.h"
    28 #include "SDL_hints.h"
    27 #include "../SDL_sysjoystick.h"
       
    28 #include "SDL_windowsjoystick_c.h"
    29 #include "SDL_windowsjoystick_c.h"
    29 #include "SDL_xinputjoystick_c.h"
    30 #include "SDL_xinputjoystick_c.h"
    30 
    31 
    31 /*
    32 /*
    32  * Internal stuff.
    33  * Internal stuff.
   336     return (device->SubType == XINPUT_DEVSUBTYPE_GAMEPAD);
   337     return (device->SubType == XINPUT_DEVSUBTYPE_GAMEPAD);
   337 }
   338 }
   338 
   339 
   339 #else /* !SDL_JOYSTICK_XINPUT */
   340 #else /* !SDL_JOYSTICK_XINPUT */
   340 
   341 
       
   342 struct JoyStick_DeviceData;
   341 
   343 
   342 SDL_bool SDL_XINPUT_Enabled(void)
   344 SDL_bool SDL_XINPUT_Enabled(void)
   343 {
   345 {
   344     return SDL_FALSE;
   346     return SDL_FALSE;
   345 }
   347 }