SDL3pp
A slim C++ wrapper for SDL3
|
The SDL keyboard scancode representation. More...
Public Member Functions | |
constexpr | Scancode (ScancodeRaw scancode={}) |
Wraps Scancode. More... | |
Scancode (StringParam name) | |
Get a scancode from a human-readable name. More... | |
constexpr bool | operator== (ScancodeRaw scancode) const |
Default comparison operator. | |
constexpr auto | operator<=> (ScancodeRaw scancode) const |
Default comparison operator. | |
constexpr | operator ScancodeRaw () const |
Unwraps to the underlying Scancode. More... | |
void | SetName (StringParam name) |
Set a human-readable name for a scancode. More... | |
const char * | GetName () const |
Get a human-readable name for a scancode. More... | |
An SDL scancode is the physical representation of a key on the keyboard, independent of language and keyboard mapping.
Values of this type are used to represent keyboard keys, among other places in the scancode
field of the KeyboardEvent structure.
The values in this enumeration are based on the USB usage page standard: https://usb.org/sites/default/files/hut1_5.pdf
|
inlineconstexpr |
scancode | the value to be wrapped |
|
inlineconstexpr |