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:
Cameron Gutman
2021-11-11 12:12:05 -06:00
committed by Sam Lantinga
parent 1ccfbf963e
commit afccabb881
18 changed files with 135 additions and 20 deletions

View File

@@ -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))