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

Function reset_inputdevice_config_temp

src/inputdevice.cpp:1224–1243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1222}
1223
1224static void reset_inputdevice_config_temp(void)
1225{
1226 for (int i = 0; i < MAX_INPUT_DEVICES; i++) {
1227 for (int j = 0; j < IDTYPE_MAX; j++) {
1228 temp_uid_index[i][j] = -1;
1229 }
1230 }
1231 for (int i = 0; i < IDTYPE_MAX; i++) {
1232 temp_uid_cnt[i] = 0;
1233 }
1234 xfree(temp_uid.configname);
1235 xfree(temp_uid.name);
1236 memset(&temp_uid, 0, sizeof temp_uid);
1237 for (int i = 0; i < MAX_INPUT_DEVICES; i++) {
1238 temp_uid.matcheddevices[i] = -1;
1239 temp_uid.nonmatcheddevices[i] = -1;
1240 }
1241 temp_uid.idnum = -1;
1242 temp_uid.lastdevtype = -1;
1243}
1244
1245void reset_inputdevice_config (struct uae_prefs *prefs, bool reset)
1246{

Callers 2

reset_inputdevice_configFunction · 0.85
read_inputdevice_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected