mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 01:17:40 +00:00
Clarify that the SDL_GetStringRule means that SDL will automatically free the memory later.
This commit is contained in:
parent
0d24b6e9f3
commit
d73c7311d5
23 changed files with 66 additions and 69 deletions
|
@ -949,7 +949,7 @@ extern SDL_DECLSPEC SDL_HapticID *SDLCALL SDL_GetHaptics(int *count);
|
|||
*
|
||||
* This can be called before any haptic devices are opened.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule.
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \param instance_id the haptic device instance ID.
|
||||
* \returns the name of the selected haptic device. If no name can be found,
|
||||
|
@ -1014,7 +1014,7 @@ extern SDL_DECLSPEC SDL_HapticID SDLCALL SDL_GetHapticID(SDL_Haptic *haptic);
|
|||
/**
|
||||
* Get the implementation dependent name of a haptic device.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule.
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
*
|
||||
* \param haptic the SDL_Haptic obtained from SDL_OpenJoystick().
|
||||
* \returns the name of the selected haptic device. If no name can be found,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue