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

Function handleKeyInput

src/OpenLoco/src/Input/Keyboard.cpp:203–218  ·  view source on GitHub ↗

0x00406FBA

Source from the content-addressed store, hash-verified

201
202 // 0x00406FBA
203 void handleKeyInput(uint32_t keycode)
204 {
205 enqueueKey(keycode);
206
207 switch (keycode)
208 {
209 case SDLK_RETURN:
210 case SDLK_BACKSPACE:
211 case SDLK_DELETE:
212 {
213 char c[] = { (char)keycode, '\0' };
214 enqueueText(c);
215 break;
216 }
217 }
218 }
219
220 void enqueueText(const char* text)
221 {

Callers 1

processMessagesFunction · 0.85

Calls 2

enqueueKeyFunction · 0.85
enqueueTextFunction · 0.85

Tested by

no test coverage detected