mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-04 02:47:39 +00:00
Updated documentation for functions that return temporary memory
This commit is contained in:
parent
68322ac851
commit
71a60d4c0e
24 changed files with 85 additions and 146 deletions
|
@ -931,7 +931,7 @@ typedef Uint32 SDL_HapticID;
|
|||
/**
|
||||
* Get a list of currently connected haptic devices.
|
||||
*
|
||||
* The returned array follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
* This returns temporary memory which will be automatically freed later, and can be claimed with SDL_ClaimTemporaryMemory().
|
||||
*
|
||||
* \param count a pointer filled in with the number of haptic devices
|
||||
* returned, may be NULL.
|
||||
|
@ -949,7 +949,7 @@ extern SDL_DECLSPEC const SDL_HapticID * SDLCALL SDL_GetHaptics(int *count);
|
|||
*
|
||||
* This can be called before any haptic devices are opened.
|
||||
*
|
||||
* The returned string follows the SDL_GetStringRule, and will be automatically freed later.
|
||||
* This returns temporary memory which will be automatically freed later, and can be claimed with SDL_ClaimTemporaryMemory().
|
||||
*
|
||||
* \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, and will be automatically freed later.
|
||||
* This returns temporary memory which will be automatically freed later, and can be claimed with SDL_ClaimTemporaryMemory().
|
||||
*
|
||||
* \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