wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

ControllerImage_Quit

Deinitialize the ControllerImage library.

Header File

Defined in <controllerimage.h>

Syntax

void ControllerImage_Quit(void);

Remarks

This must be called when done with the library, probably at the end of your program.

It is safe to call this multiple times; the library will only deinitialize once, when this function is called the same number of times as ControllerImage_Init() was successfully called.

Once you have successfully deinitialized the library, it is safe to call ControllerImage_Init() to reinitialize it for further use.

Any data added to the library through ControllerImage_AddData() and related functions will be deallocated.

This function does not automatically destroy any created ControllerImage_Device objects that have been created. Please destroy them before deinitializing the library. SDL_Surface objects generated by the library are also not destroyed here.

Once the library deinitializes, constant strings returned by various functions, like ControllerImage_GetDeviceType(), ControllerImage_GetSVGForButton(), and ControllerImage_GetSVGForAxis(), will be deallocated, and their pointers should not be referenced again.

Thread Safety

This function is not thread safe.

Version

This function is available since ControllerImage 1.0.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryControllerImage


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.