MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / IsQuitKey

Function IsQuitKey

src/main_gui.cpp:541–545  ·  view source on GitHub ↗

* Does the given keycode match one of the keycodes bound to 'quit game'? * @param keycode The keycode that was pressed by the user. * @return True iff the keycode matches one of the hotkeys for 'quit'. */

Source from the content-addressed store, hash-verified

539 * @return True iff the keycode matches one of the hotkeys for 'quit'.
540 */
541bool IsQuitKey(uint16_t keycode)
542{
543 int num = MainWindow::hotkeys.CheckMatch(keycode);
544 return num == GHK_QUIT;
545}
546
547
548void ShowSelectGameWindow();

Callers 1

OnKeyPressMethod · 0.85

Calls 1

CheckMatchMethod · 0.80

Tested by

no test coverage detected