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

Function disableifempty2

src/inputdevice.cpp:7994–8004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7992}
7993
7994static void disableifempty2 (struct uae_input_device *uid)
7995{
7996 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
7997 for (int j = 0; j < MAX_INPUT_SUB_EVENT; j++) {
7998 if (uid->eventid[i][j] > 0 || uid->custom[i][j] != NULL)
7999 return;
8000 }
8001 }
8002 if (uid->enabled < 0)
8003 uid->enabled = 0;
8004}
8005static void disableifempty (struct uae_prefs *prefs)
8006{
8007 for (int l = 0; l < MAX_INPUT_DEVICES; l++) {

Callers 1

disableifemptyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected