|
OpenTTD Source 20251117-master-g7398d2e290
|
Hotkey related functions. More...
Go to the source code of this file.
Data Structures | |
| struct | Hotkey |
| All data for a single hotkey. More... | |
| struct | HotkeyList |
| List of hotkeys for a window. More... | |
Functions | |
| bool | IsQuitKey (uint16_t keycode) |
| Does the given keycode match one of the keycodes bound to 'quit game'? | |
| void | LoadHotkeysFromConfig () |
| Load the hotkeys from the config file. | |
| void | SaveHotkeysToConfig () |
| Save the hotkeys to the config file. | |
| void | HandleGlobalHotkeys (char32_t key, uint16_t keycode) |
Hotkey related functions.
Definition in file hotkeys.h.
| void HandleGlobalHotkeys | ( | char32_t | key, |
| uint16_t | keycode | ||
| ) |
Definition at line 343 of file hotkeys.cpp.
| bool IsQuitKey | ( | uint16_t | keycode | ) |
Does the given keycode match one of the keycodes bound to 'quit game'?
| keycode | The keycode that was pressed by the user. |
Definition at line 541 of file main_gui.cpp.
References HotkeyList::CheckMatch().
Referenced by EndGameHighScoreBaseWindow::OnKeyPress().
| void LoadHotkeysFromConfig | ( | ) |
Load the hotkeys from the config file.
Definition at line 332 of file hotkeys.cpp.
Referenced by AfterNewGRFScan::OnNewGRFsScanned().
| void SaveHotkeysToConfig | ( | ) |
Save the hotkeys to the config file.
Definition at line 338 of file hotkeys.cpp.