GamepadEvent#

Fully qualified name: carb::input::GamepadEvent

Defined in carb/input/InputTypes.h

struct GamepadEvent#

Defines a gamepad event.

Public Members

Gamepad *gamepad#

The Gamepad handle that is sending this event.

InputDevice *device#

The InputDevice handle that is sending this event.

union carb::input::GamepadEvent::[anonymous] [anonymous]#
GamepadInput input#

The GamepadInput button or axis for this event.

InputType inputType#

The InputType button or axis for this event.

union carb::input::GamepadEvent::[anonymous] [anonymous]#
float value#

The value of the button or axis for this event. Buttons will have either 0.0 or 1.0, whereas axes may have any value [0.0, 1.0]