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

ControllerImage_DeviceHasArtworkForButton

Check if artwork is available for a given button on a specific device.

Header File

Defined in <controllerimage.h>

Syntax

bool ControllerImage_DeviceHasArtworkForButton(ControllerImage_Device *device, SDL_GamepadButton button);

Function Parameters

ControllerImage_Device * device the device object to query.
SDL_GamepadButton button the button on the device to check for available artwork.

Return Value

(bool) Returns true if artwork is available, false otherwise.

Remarks

Not all devices have all buttons, or perhaps an artset is incomplete. This function reports if artwork for a specific button is available.

A NULL device or a bogus button value will return false; make sure your parameters are good to get useful information!

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.