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

Function cleardev

src/inputdevice.cpp:7455–7466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7453}
7454
7455static void cleardev (struct uae_input_device *uid, int num)
7456{
7457 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
7458 inputdevice_sparecopy (&uid[num], i, 0);
7459 for (int j = 0; j < MAX_INPUT_SUB_EVENT; j++) {
7460 uid[num].eventid[i][j] = 0;
7461 uid[num].flags[i][j] &= ID_FLAG_AUTOFIRE_MASK;
7462 xfree (uid[num].custom[i][j]);
7463 uid[num].custom[i][j] = NULL;
7464 }
7465 }
7466}
7467
7468static void enablejoydevice (struct uae_input_device *uid, bool gameportsmode, int evtnum)
7469{

Callers 1

compatibility_copyFunction · 0.85

Calls 1

inputdevice_sparecopyFunction · 0.85

Tested by

no test coverage detected