|
Toast Engine
|
A parsed keycode resolved to a device, kind and numeric code. More...
#include <keycodes.hpp>
Public Attributes | |
| Device | device = Device::none |
| InputKind | kind = InputKind::button |
| int | code = 0 |
| bool | valid = false |
A parsed keycode resolved to a device, kind and numeric code.
The meaning of code depends on the device and kind: an SDL keycode for the keyboard, an SDL mouse button, an SDL gamepad button or axis, or a stick index for a 2D controller axis (0 left stick, 1 right stick, 2 touchpad)