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

Function inputdevice_synccapslock

src/inputdevice.cpp:8623–8644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8621}
8622
8623int 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
8646static void rqualifiers (uae_u64 flags, bool release)
8647{

Callers 1

getcapslockFunction · 0.85

Calls 1

Tested by

no test coverage detected