MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ShortcutToggleConsole

Function ShortcutToggleConsole

src/openrct2-ui/input/Shortcuts.cpp:621–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621static void ShortcutToggleConsole()
622{
623 auto& console = GetInGameConsole();
624 if (console.IsOpen())
625 {
626 console.Toggle();
627 }
628 else if (Config::Get().general.debuggingTools && !ContextIsInputActive())
629 {
630 WindowCancelTextbox();
631 console.Toggle();
632 }
633}
634
635static void ShortcutConstructionTurnLeft()
636{

Callers

nothing calls this directly

Calls 4

ContextIsInputActiveFunction · 0.85
WindowCancelTextboxFunction · 0.85
IsOpenMethod · 0.80
ToggleMethod · 0.80

Tested by

no test coverage detected