Changes from Alfred:
- rename JoystickGUID -> SDL_JoystickGUID - change SDL_JoystickGetGUIDString to take the string as an arg, rather than doing a malloc
This commit is contained in:
parent
6b3312c807
commit
89ef9e3168
9 changed files with 36 additions and 40 deletions
|
@ -953,13 +953,15 @@ SDL_SYS_JoystickQuit(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID( int device_index )
|
||||
{
|
||||
JoystickGUID guid;
|
||||
return JoystickByDevIndex(device_index)->guid;
|
||||
}
|
||||
|
||||
JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||
SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick)
|
||||
{
|
||||
JoystickGUID guid;
|
||||
return joystick->hwdata->guid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue