|
libGumball 0.0.2
C23-Based, libGimbal-powered UI Library
|
Go to the source code of this file.
Macros | |
| #define | GUM_Controller_create(...) |
Type System | |
Type UUID and cast operators | |
| #define | GUM_CONTROLLER_TYPE |
| #define | GUM_CONTROLLER(self) |
| #define | GUM_CONTROLLER_CLASS(klass) |
| #define | GUM_CONTROLLER_CLASSOF(self) |
Enumerations | |
| enum | GUM_CONTROLLER_BUTTON_STATE : uint8_t |
| enum | GUM_CONTROLLER_BUTTON_ID : uint8_t |
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.
| #define GUM_CONTROLLER_TYPE |
Returns the GUM_Controller Type UUID.
| #define GUM_CONTROLLER | ( | self | ) |
Casts an instance of a compatible element to a GUM_Controller.
| #define GUM_CONTROLLER_CLASS | ( | klass | ) |
Casts a class of a compatible element to a GUM_ControllerClass.
| #define GUM_CONTROLLER_CLASSOF | ( | self | ) |
Casts an instance of a compatible element to a GUM_ControllerClass.
| enum GUM_CONTROLLER_BUTTON_STATE : uint8_t |
| enum GUM_CONTROLLER_BUTTON_ID : uint8_t |
| 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