mirror of
https://github.com/encounter/SDL.git
synced 2025-12-08 13:15:10 +00:00
Enable the virtual joystick API by default
This commit is contained in:
@@ -136,8 +136,9 @@
|
|||||||
|
|
||||||
/* Enable various input drivers */
|
/* Enable various input drivers */
|
||||||
#define SDL_JOYSTICK_ANDROID 1
|
#define SDL_JOYSTICK_ANDROID 1
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
#define SDL_HAPTIC_ANDROID 1
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#define SDL_HAPTIC_ANDROID 1
|
||||||
|
|
||||||
/* Enable sensor driver */
|
/* Enable sensor driver */
|
||||||
#define SDL_SENSOR_ANDROID 1
|
#define SDL_SENSOR_ANDROID 1
|
||||||
|
|||||||
@@ -137,8 +137,9 @@
|
|||||||
#define SDL_HAPTIC_DUMMY 1
|
#define SDL_HAPTIC_DUMMY 1
|
||||||
|
|
||||||
/* Enable MFi joystick support */
|
/* Enable MFi joystick support */
|
||||||
#define SDL_JOYSTICK_MFI 1
|
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
|
#define SDL_JOYSTICK_MFI 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
|
||||||
#ifdef __TVOS__
|
#ifdef __TVOS__
|
||||||
#define SDL_SENSOR_DUMMY 1
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|||||||
@@ -139,8 +139,9 @@
|
|||||||
#define SDL_AUDIO_DRIVER_DUMMY 1
|
#define SDL_AUDIO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
/* Enable various input drivers */
|
/* Enable various input drivers */
|
||||||
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
#define SDL_JOYSTICK_IOKIT 1
|
#define SDL_JOYSTICK_IOKIT 1
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
#define SDL_HAPTIC_IOKIT 1
|
#define SDL_HAPTIC_IOKIT 1
|
||||||
|
|
||||||
/* Enable the dummy sensor driver */
|
/* Enable the dummy sensor driver */
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
#define SDL_POWER_DISABLED 1
|
#define SDL_POWER_DISABLED 1
|
||||||
#define SDL_JOYSTICK_DISABLED 1
|
#define SDL_JOYSTICK_DISABLED 1
|
||||||
#define SDL_HAPTIC_DISABLED 1
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
/*#undef SDL_JOYSTICK_HIDAPI */
|
|
||||||
|
|
||||||
#define SDL_SENSOR_DUMMY 1
|
#define SDL_SENSOR_DUMMY 1
|
||||||
#define SDL_VIDEO_DRIVER_DUMMY 1
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
|||||||
@@ -112,6 +112,7 @@
|
|||||||
#define SDL_INPUT_LINUXEV 1
|
#define SDL_INPUT_LINUXEV 1
|
||||||
#define SDL_INPUT_TSLIB 1
|
#define SDL_INPUT_TSLIB 1
|
||||||
#define SDL_JOYSTICK_LINUX 1
|
#define SDL_JOYSTICK_LINUX 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
#define SDL_HAPTIC_LINUX 1
|
#define SDL_HAPTIC_LINUX 1
|
||||||
|
|
||||||
#define SDL_SENSOR_DUMMY 1
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|||||||
@@ -136,6 +136,7 @@
|
|||||||
|
|
||||||
/* Enable the PSP joystick driver (src/joystick/psp/\*.c) */
|
/* Enable the PSP joystick driver (src/joystick/psp/\*.c) */
|
||||||
#define SDL_JOYSTICK_PSP 1
|
#define SDL_JOYSTICK_PSP 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
|
||||||
/* Enable the dummy sensor driver */
|
/* Enable the dummy sensor driver */
|
||||||
#define SDL_SENSOR_DUMMY 1
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|||||||
@@ -195,9 +195,10 @@ typedef unsigned int uintptr_t;
|
|||||||
|
|
||||||
/* Enable various input drivers */
|
/* Enable various input drivers */
|
||||||
#define SDL_JOYSTICK_DINPUT 1
|
#define SDL_JOYSTICK_DINPUT 1
|
||||||
#define SDL_JOYSTICK_XINPUT 1
|
|
||||||
#define SDL_JOYSTICK_HIDAPI 1
|
#define SDL_JOYSTICK_HIDAPI 1
|
||||||
#define SDL_JOYSTICK_RAWINPUT 1
|
#define SDL_JOYSTICK_RAWINPUT 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
#define SDL_HAPTIC_DINPUT 1
|
#define SDL_HAPTIC_DINPUT 1
|
||||||
#define SDL_HAPTIC_XINPUT 1
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
|
|
||||||
|
|||||||
@@ -193,6 +193,7 @@ typedef unsigned int uintptr_t;
|
|||||||
#define SDL_JOYSTICK_DISABLED 1
|
#define SDL_JOYSTICK_DISABLED 1
|
||||||
#define SDL_HAPTIC_DISABLED 1
|
#define SDL_HAPTIC_DISABLED 1
|
||||||
#else
|
#else
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
#define SDL_JOYSTICK_XINPUT 1
|
#define SDL_JOYSTICK_XINPUT 1
|
||||||
#define SDL_HAPTIC_XINPUT 1
|
#define SDL_HAPTIC_XINPUT 1
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -128,6 +128,7 @@
|
|||||||
#define SDL_INPUT_LINUXEV 1
|
#define SDL_INPUT_LINUXEV 1
|
||||||
#define SDL_INPUT_TSLIB 1
|
#define SDL_INPUT_TSLIB 1
|
||||||
#define SDL_JOYSTICK_LINUX 1
|
#define SDL_JOYSTICK_LINUX 1
|
||||||
|
#define SDL_JOYSTICK_VIRTUAL 1
|
||||||
#define SDL_HAPTIC_LINUX 1
|
#define SDL_HAPTIC_LINUX 1
|
||||||
|
|
||||||
#define SDL_SENSOR_DUMMY 1
|
#define SDL_SENSOR_DUMMY 1
|
||||||
|
|||||||
Reference in New Issue
Block a user