We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086c5e1 commit 712c330Copy full SHA for 712c330
input/drivers_joypad/sdl_joypad.c
@@ -29,6 +29,7 @@
29
30
#define SDL_SUPPORTS_RUMBLE SDL_VERSION_ATLEAST(2, 0, 9)
31
#define SDL_SUPPORTS_SENSORS SDL_VERSION_ATLEAST(2, 0, 14)
32
+#define SDL_SUPPORTS_HIDAPI_WII SDL_VERSION_ATLEAST(2, 26, 0)
33
34
typedef struct _sdl_joypad
35
{
@@ -301,6 +302,10 @@ static void *sdl_joypad_init(void *data)
301
302
/* enable extended hid reports to support ps4/ps5 rumble over bluetooth */
303
SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_PS4_RUMBLE, "1");
304
#endif
305
+#if SDL_SUPPORTS_HIDAPI_WII
306
+ /* enable HIDAPI Wii driver for accelerometer/gyro support */
307
+ SDL_SetHint(SDL_HINT_JOYSTICK_HIDAPI_WII, "1");
308
+#endif
309
310
311
memset(sdl_pads, 0, sizeof(sdl_pads));
0 commit comments