MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / execute

Function execute

src/Engine/src/Input/ShortcutManager.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void execute(Shortcut id)
48 {
49 auto it = findShortcut(id);
50 if (it == std::end(_shortcuts) || it->id != id)
51 {
52 return;
53 }
54 it->action();
55 }
56
57 StringId getName(Shortcut id)
58 {

Callers 1

tryShortcutFunction · 0.85

Calls 2

findShortcutFunction · 0.85
endFunction · 0.85

Tested by

no test coverage detected