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

Function cleardev_custom

src/inputdevice.cpp:7383–7399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7381}
7382
7383static void cleardev_custom (struct uae_input_device *uid, int num, int index)
7384{
7385 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
7386 for (int j = 0; j < MAX_INPUT_SUB_EVENT; j++) {
7387 if (uid[num].port[i][j] == index + 1) {
7388 uid[num].eventid[i][j] = 0;
7389 uid[num].flags[i][j] &= COMPA_RESERVED_FLAGS;
7390 xfree (uid[num].custom[i][j]);
7391 uid[num].custom[i][j] = NULL;
7392 uid[num].port[i][j] = 0;
7393 if (uid[num].port[i][SPARE_SUB_EVENT]) {
7394 inputdevice_sparerestore (&uid[num], i, j);
7395 }
7396 }
7397 }
7398 }
7399}
7400static void cleardevkbr_custom(struct uae_input_device *uid, int num, int index)
7401{
7402 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {

Callers 1

remove_custom_configFunction · 0.85

Calls 1

inputdevice_sparerestoreFunction · 0.85

Tested by

no test coverage detected