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

Function loc_4BEFEF

src/OpenLoco/src/Input/Keyboard.cpp:127–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 static void loc_4BEFEF()
128 {
129 switch (Tutorial::state())
130 {
131 case Tutorial::State::none:
132 break;
133
134 case Tutorial::State::playing:
135 {
136 _keyModifier = static_cast<KeyModifier>(Tutorial::nextInput());
137 if (!hasKeyModifier(KeyModifier::unknown))
138 {
139 return;
140 }
141
142 Windows::ToolTip::closeAndReset();
143
144 auto tutStringId = Tutorial::nextString();
145 auto main = WindowManager::getMainWindow();
146 auto cursor = getMouseLocation();
147
148 Windows::ToolTip::update(main, 0, tutStringId, cursor.x, cursor.y);
149 break;
150 }
151
152 case Tutorial::State::recording:
153 {
154 // Vanilla had tutorial recording here at 0x004BF005
155 // as tutorials are fixed mouse position there isn't much
156 // point implementing this code as per vanilla.
157 break;
158 }
159 }
160 }
161
162 // 0x0040477F
163 void readKeyboardState()

Callers 1

normalKeyFunction · 0.85

Calls 8

nextInputFunction · 0.85
hasKeyModifierFunction · 0.85
closeAndResetFunction · 0.85
nextStringFunction · 0.85
getMainWindowFunction · 0.85
getMouseLocationFunction · 0.85
stateFunction · 0.50
updateFunction · 0.50

Tested by

no test coverage detected