Split the XInput and DirectInput code so Windows RT can use the existing XInput support.

--HG--
rename : src/audio/directsound/directx.h => src/core/windows/SDL_directx.h
rename : src/haptic/windows/SDL_syshaptic.c => src/haptic/windows/SDL_windowshaptic.c
rename : src/haptic/windows/SDL_syshaptic_c.h => src/haptic/windows/SDL_windowshaptic_c.h
rename : src/joystick/windows/SDL_dxjoystick.c => src/joystick/windows/SDL_dinputjoystick.c
rename : src/joystick/windows/SDL_dxjoystick_c.h => src/joystick/windows/SDL_dinputjoystick_c.h
rename : src/joystick/windows/SDL_dxjoystick_c.h => src/joystick/windows/SDL_windowsjoystick_c.h
This commit is contained in:
Sam Lantinga 2014-07-03 15:39:55 -07:00
parent 8540c8da93
commit 9cdeec59f3
34 changed files with 3982 additions and 3171 deletions

View file

@ -20,6 +20,9 @@
*/
#include "../SDL_internal.h"
#ifndef _SDL_sysjoystick_h
#define _SDL_sysjoystick_h
/* This is the system specific header for the SDL joystick API */
#include "SDL_joystick.h"
@ -105,9 +108,9 @@ extern SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index);
/* Function to return the stable GUID for a opened joystick */
extern SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick);
#if defined(SDL_JOYSTICK_DINPUT) || defined(SDL_JOYSTICK_XINPUT)
/* Function returns SDL_TRUE if this device is an XInput gamepad */
extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex( int device_index );
#endif
extern SDL_bool SDL_SYS_IsXInputGamepad_DeviceIndex(int device_index);
#endif /* _SDL_sysjoystick_h */
/* vi: set ts=4 sw=4 expandtab: */