libGumball 0.0.2
C23-Based, libGimbal-powered UI Library
Loading...
Searching...
No Matches
gumball_event_button.h File Reference

Go to the source code of this file.

Macros

Type System

Type UUID and Cast Operators

#define GUM_EVENT_BUTTON_TYPE
#define GUM_EVENT_BUTTON(self)
#define GUM_EVENT_BUTTON_CLASS(klass)
#define GUM_EVENT_BUTTON_CLASSOF(self)

Functions

 GBL_CLASS_DERIVE_EMPTY (GUM_Event_Button, GUM_Event_Input)
 GBL_INSTANCE_DERIVE (GUM_Event_Button, GUM_Event_Input) uint8_t controllerId

Detailed Description

Event type for gamepad button events.

Author
2025 Agustín Bellagamba

Macro Definition Documentation

◆ GUM_EVENT_BUTTON_TYPE

#define GUM_EVENT_BUTTON_TYPE

Returns the GUM_Event_Button Type UUID.

◆ GUM_EVENT_BUTTON

#define GUM_EVENT_BUTTON ( self)

Casts an instance of a compatible event to a GUM_Event_Button.

◆ GUM_EVENT_BUTTON_CLASS

#define GUM_EVENT_BUTTON_CLASS ( klass)

Casts a class of a compatible event to a GUM_Event_ButtonClass.

◆ GUM_EVENT_BUTTON_CLASSOF

#define GUM_EVENT_BUTTON_CLASSOF ( self)

Casts an instance of a compatible event to a GUM_Event_ButtonClass.

Function Documentation

◆ GBL_INSTANCE_DERIVE()

GBL_INSTANCE_DERIVE ( GUM_Event_Button ,
GUM_Event_Input  )

ID of the controller that generated the event.