mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
joystick: Add capability flags for rumble and trigger rumble
When API limitations force us to guess, we favor a false positive (reporting support when it doesn't exist) compared to a false negative.
This commit is contained in:

committed by
Sam Lantinga

parent
1ccfbf963e
commit
afccabb881
@@ -123,6 +123,8 @@ struct _SDL_Joystick
|
||||
|
||||
/* Joystick capability flags for GetCapabilities() */
|
||||
#define SDL_JOYCAP_LED 0x01
|
||||
#define SDL_JOYCAP_RUMBLE 0x02
|
||||
#define SDL_JOYCAP_RUMBLE_TRIGGERS 0x04
|
||||
|
||||
/* Macro to combine a USB vendor ID and product ID into a single Uint32 value */
|
||||
#define MAKE_VIDPID(VID, PID) (((Uint32)(VID))<<16|(PID))
|
||||
|
Reference in New Issue
Block a user