OpenTTD Source 20241224-master-gf74b0cf984
|
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 351 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 534 of file main_gui.cpp.
References HotkeyList::CheckMatch().
Referenced by EndGameHighScoreBaseWindow::OnKeyPress().
void LoadHotkeysFromConfig | ( | ) |
Load the hotkeys from the config file.
Definition at line 340 of file hotkeys.cpp.
Referenced by AfterNewGRFScan::OnNewGRFsScanned().
void SaveHotkeysToConfig | ( | ) |
Save the hotkeys to the config file.
Definition at line 346 of file hotkeys.cpp.