GameInput backend for SDL (Gamepad-only for now)
This commit is contained in:
committed by
Sam Lantinga
parent
7ed1f3554d
commit
534f753e20
@@ -176,6 +176,16 @@
|
||||
#define SDL_JOYSTICK_XINPUT 1
|
||||
#define SDL_HAPTIC_DINPUT 1
|
||||
|
||||
/* Native GameInput: */
|
||||
/*#define SDL_JOYSTICK_GAMEINPUT 1*/
|
||||
#if defined(SDL_JOYSTICK_GAMEINPUT) && (defined(SDL_JOYSTICK_XINPUT) || defined(SDL_JOYSTICK_DINPUT))
|
||||
#error "GameInput cannot co-exist, choose one."
|
||||
#endif /* defined(SDL_JOYSTICK_GAMEINPUT) && (defined(SDL_JOYSTICK_XINPUT) || defined(SDL_JOYSTICK_DINPUT)) */
|
||||
#if defined(SDL_JOYSTICK_GAMEINPUT) && SDL_JOYSTICK_GAMEINPUT
|
||||
/* TODO: Implement proper haptics for GameInput! */
|
||||
#define SDL_HAPTIC_DUMMY 1
|
||||
#endif /* defined(SDL_JOYSTICK_GAMEINPUT) && SDL_JOYSTICK_GAMEINPUT */
|
||||
|
||||
/* Enable the sensor driver */
|
||||
#ifdef HAVE_SENSORSAPI_H
|
||||
#define SDL_SENSOR_WINDOWS 1
|
||||
|
||||
@@ -173,7 +173,17 @@
|
||||
#ifdef HAVE_WINDOWS_GAMING_INPUT_H
|
||||
#define SDL_JOYSTICK_WGI 1
|
||||
#endif
|
||||
#define SDL_JOYSTICK_XINPUT 1
|
||||
/* This is XInputOnGameInput for GDK platforms: */
|
||||
/*#define SDL_JOYSTICK_XINPUT 1*/
|
||||
/* Native GameInput: */
|
||||
#define SDL_JOYSTICK_GAMEINPUT 1
|
||||
#if defined(SDL_JOYSTICK_GAMEINPUT) && (defined(SDL_JOYSTICK_XINPUT) || defined(SDL_JOYSTICK_DINPUT))
|
||||
#error "GameInput cannot co-exist, choose one."
|
||||
#endif /* defined(SDL_JOYSTICK_GAMEINPUT) && (defined(SDL_JOYSTICK_XINPUT) || defined(SDL_JOYSTICK_DINPUT)) */
|
||||
#if defined(SDL_JOYSTICK_GAMEINPUT) && SDL_JOYSTICK_GAMEINPUT
|
||||
/* TODO: Implement proper haptics for GameInput! */
|
||||
#define SDL_HAPTIC_DUMMY 1
|
||||
#endif /* defined(SDL_JOYSTICK_GAMEINPUT) && SDL_JOYSTICK_GAMEINPUT */
|
||||
/*#define SDL_HAPTIC_DINPUT 1*/
|
||||
|
||||
/* Enable the sensor driver */
|
||||
|
||||
Reference in New Issue
Block a user