carb::input::ActionMappingDesc

Defined in carb/input/InputTypes.h

struct ActionMappingDesc

Defines action mapping description.

Public Members

DeviceType deviceType

The DeviceType for the action mapping; dictates which members below should be used.

Keyboard *keyboard

The Keyboard handle for this action mapping, when deviceType is DeviceType::eKeyboard.

Mouse *mouse

The Mouse handle for this action mapping, when deviceType is DeviceType::eMouse.

Gamepad *gamepad

The Gamepad handle for this action mapping, when deviceType is DeviceType::eGamepad.

InputDevice *device

The InputDevice handle for this action mapping.

union carb::input::ActionMappingDesc::[anonymous] [anonymous]
KeyboardInput keyboardInput

The KeyboardInput key for this action mapping, when deviceType is DeviceType::eKeyboard.

MouseInput mouseInput

The MouseInput button for this action mapping, when deviceType is DeviceType::eMouse.

GamepadInput gamepadInput

The GamepadInput button or axis for this action mapping, when deviceType is DeviceType::eGamepad.

InputType inputType

The non-enumeration InputType representing the key/button/axis.

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

KeyboardModifierFlags values bitwise-or’d determining which modifiers are used by this action mapping.