MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / inputdevice_handle_inputcode

Function inputdevice_handle_inputcode

src/inputdevice.cpp:5377–5404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5375}
5376
5377void inputdevice_handle_inputcode(void)
5378{
5379 int monid = 0;
5380 bool got = false;
5381 for (int i = 0; i < MAX_PENDING_EVENTS; i++) {
5382 int code = inputcode_pending[i].code;
5383 int state = inputcode_pending[i].state;
5384 TCHAR *s = inputcode_pending[i].s;
5385 if (code) {
5386#ifdef AMIBERRY
5387 if (pause_emulation && state == 0)
5388 {
5389 got = false;
5390 xfree(s);
5391 inputcode_pending[i].code = 0;
5392 continue;
5393 }
5394#endif
5395 if (!inputdevice_handle_inputcode2(monid, code, state, s)) {
5396 xfree(s);
5397 inputcode_pending[i].code = 0;
5398 }
5399 got = true;
5400 }
5401 }
5402 if (!got)
5403 inputdevice_handle_inputcode2(monid, 0, 0, NULL);
5404}
5405
5406
5407static int getqualid (int evt)

Callers 2

inputdevice_vsyncFunction · 0.85
handle_eventsFunction · 0.85

Calls 1

Tested by

no test coverage detected