| 251 | } |
| 252 | |
| 253 | static bool tryShortcut(Shortcut sc, uint32_t keyCode, KeyModifier modifiers) |
| 254 | { |
| 255 | auto cfg = OpenLoco::Config::get(); |
| 256 | if (cfg.shortcuts[sc].keyCode == keyCode && cfg.shortcuts[sc].modifiers == modifiers) |
| 257 | { |
| 258 | ShortcutManager::execute(sc); |
| 259 | return true; |
| 260 | } |
| 261 | |
| 262 | return false; |
| 263 | } |
| 264 | |
| 265 | // 0x004BEC5B |
| 266 | void processKeyboardInput() |