|
libGumball 0.0.1
C23-Based, libGimbal-powered UI Library
|
Go to the source code of this file.
Enumerations | |
| enum | GUM_CONTROLLER_BUTTON_STATE |
| enum | GUM_CONTROLLER_BUTTON_ID |
Functions | |
| GBL_EXPORT void | GUM_Controller_sendButton (GBL_SELF, GUM_CONTROLLER_BUTTON_STATE state, GUM_CONTROLLER_BUTTON_ID button) GBL_NOEXCEPT |
| GBL_EXPORT void | GUM_Controller_setSelectedButton (GBL_SELF, GUM_Button *pButton) GBL_NOEXCEPT |
Variables | |
Properties | |
Properties you can set/get at or after creation.
| |
| uint8_t | controllerId |
| bool | isKeyboard |
GUM_Controller data structure and hierarchy graph
GUM_Controller is responsible for handling input from gamepads and/or keyboards, and drawing a border around the currently selected button. Each controller is associated with a specific player id, allowing you to have multiple controllers at once.
| enum GUM_CONTROLLER_BUTTON_STATE |
| enum GUM_CONTROLLER_BUTTON_ID |
| GBL_EXPORT void GUM_Controller_sendButton | ( | GBL_SELF | , |
| GUM_CONTROLLER_BUTTON_STATE | state, | ||
| GUM_CONTROLLER_BUTTON_ID | button ) |
Takes in a GUM_Controller, a GUM_CONTROLLER_BUTTON_STATE, and a GUM_CONTROLLER_BUTTON_ID.
Handles the event.
| GBL_EXPORT void GUM_Controller_setSelectedButton | ( | GBL_SELF | , |
| GUM_Button * | pButton ) |
Takes in a GUM_Controller, and sets its selected button to the passed GUM_Button.
| uint8_t controllerId |
Which id is this controller associated with.
Default value is 0
| bool isKeyboard |
If the controller is a keyboard.
Default value is false