carb::input::KeyboardEvent

Defined in carb/input/InputTypes.h

struct KeyboardEvent

Defines a keyboard event.

Public Members

Keyboard *keyboard

The Keyboard handle that is sending this event.

InputDevice *device

The InputDevice handle that is sending this event.

union carb::input::KeyboardEvent::[anonymous] [anonymous]
KeyboardEventType type

The KeyboardEventType for this event.

KeyboardInput key

The KeyboardInput key for this event, when type is not KeyboardEventType::eChar.

InputType inputType

The InputType key for this event, when type is not KeyboardEventType::eChar.

char character[kCharacterMaxNumBytes]

The UTF-8 character code, when type is KeyboardEventType::eChar.

union carb::input::KeyboardEvent::[anonymous] [anonymous]
KeyboardModifierFlags modifiers

The KeyboardModifierFlags flags bitwise-or’d.