| 8621 | } |
| 8622 | |
| 8623 | int inputdevice_synccapslock (int oldcaps, int *capstable) |
| 8624 | { |
| 8625 | struct uae_input_device *na = &keyboards[0]; |
| 8626 | int j, i; |
| 8627 | |
| 8628 | if (!keyboards) |
| 8629 | return -1; |
| 8630 | for (j = 0; na->extra[j]; j++) { |
| 8631 | if (na->extra[j] == INPUTEVENT_KEY_CAPS_LOCK) { |
| 8632 | for (i = 0; capstable[i]; i += 2) { |
| 8633 | if (na->extra[j] == capstable[i]) { |
| 8634 | if (oldcaps != capstable[i + 1]) { |
| 8635 | oldcaps = capstable[i + 1]; |
| 8636 | inputdevice_translatekeycode (0, capstable[i], oldcaps ? -1 : 0, false); |
| 8637 | } |
| 8638 | return i; |
| 8639 | } |
| 8640 | } |
| 8641 | } |
| 8642 | } |
| 8643 | return -1; |
| 8644 | } |
| 8645 | |
| 8646 | static void rqualifiers (uae_u64 flags, bool release) |
| 8647 | { |
no test coverage detected