Adds function SDL_JoystickGetDeviceHWID() to get the hardware ID of a joystick so devices can be uniquely referenced over program executions.
An example would be one SDL application launching another SDL application, passing it the HWID of the joystick that is to be the "primary" controller.
This commit is contained in:
parent
f6027780aa
commit
f1003e7110
6 changed files with 41 additions and 0 deletions
|
@ -196,6 +196,7 @@
|
|||
#define SDL_JoystickNameForIndex SDL_JoystickNameForIndex_REAL
|
||||
#define SDL_JoystickOpen SDL_JoystickOpen_REAL
|
||||
#define SDL_JoystickName SDL_JoystickName_REAL
|
||||
#define SDL_JoystickGetDeviceHWID SDL_JoystickGetDeviceHWID_REAL
|
||||
#define SDL_JoystickGetDeviceGUID SDL_JoystickGetDeviceGUID_REAL
|
||||
#define SDL_JoystickGetGUID SDL_JoystickGetGUID_REAL
|
||||
#define SDL_JoystickGetGUIDString SDL_JoystickGetGUIDString_REAL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue