| 5375 | } |
| 5376 | |
| 5377 | void 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 | |
| 5407 | static int getqualid (int evt) |
no test coverage detected