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

Function isemptykey

src/inputdevice.cpp:743–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743static bool isemptykey(int keyboard, int scancode)
744{
745 int j = 0;
746 struct uae_input_device *na = &keyboards[keyboard];
747 while (j < MAX_INPUT_DEVICE_EVENTS && na->extra[j] >= 0) {
748 if (na->extra[j] == scancode) {
749 for (int k = 0; k < MAX_INPUT_SUB_EVENT; k++) {
750 if (na->eventid[j][k] > 0)
751 return false;
752 if (na->custom[j][k] != NULL)
753 return false;
754 }
755 break;
756 }
757 j++;
758 }
759 return true;
760}
761
762static void out_config (struct zfile *f, int id, int num, const TCHAR *s1, const TCHAR *s2)
763{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected