KallistiOS git master
Independent SDK for the Sega Dreamcast
|
API used to query for a controller's capabilities More...
Topics | |
Capabilities | |
Bit masks used to identify controller capabilities | |
Capability Groups | |
Bit masks representing common groups of capabilities | |
Functions | |
int | cont_has_capabilities (const struct maple_device *cont, uint32_t capabilities) |
Check for controller capabilities. | |
API used to query for a controller's capabilities
The following API is used to query for the support of individual or groups of capabilities by a particular device.
int cont_has_capabilities | ( | const struct maple_device * | cont, |
uint32_t | capabilities ) |
Check for controller capabilities.
Checks whether or not a controller implements the capabilities associated with the given type.
cont | Pointer to a Maple device structure which implements the CONTROLLER function. |
capabilities | Capability mask the controller is expected to implement |
1 | The controller supports the given capabilities. |
0 | The controller doesn't support the given capabilities. |
-1 | Invalid controller. |