|
Toast Engine
|
Implementation of the keycode parser. More...
#include "keycodes.hpp"#include <SDL3/SDL_gamepad.h>#include <SDL3/SDL_keyboard.h>#include <SDL3/SDL_keycode.h>#include <SDL3/SDL_mouse.h>#include <cctype>#include <charconv>#include <optional>#include <toast/log.hpp>#include <unordered_map>
Functions | |
| auto | input::parseKeycode (std::string_view str) -> KeyCode |
| Parses a textual keycode such as "keyboard/a", "mouse/left" or "controller/left_stick". | |
Implementation of the keycode parser.
|
nodiscard |
Parses a textual keycode such as "keyboard/a", "mouse/left" or "controller/left_stick".
| str | The keycode string; the device prefix selects the parsing path |