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

Function clear_id

src/inputdevice.cpp:1286–1302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286static void clear_id (struct uae_input_device *id)
1287{
1288#ifndef _DEBUG
1289 int i, j;
1290 for (i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
1291 for (j = 0; j < MAX_INPUT_SUB_EVENT_ALL; j++) {
1292 xfree (id->custom[i][j]);
1293 id->custom[i][j] = NULL;
1294 }
1295 }
1296#endif
1297 TCHAR *cn = id->configname;
1298 TCHAR *n = id->name;
1299 memset (id, 0, sizeof (struct uae_input_device));
1300 id->configname = cn;
1301 id->name = n;
1302}
1303
1304static void set_kbr_default (struct uae_prefs *p, int index, int devnum, struct uae_input_device_kbr_default *trans)
1305{

Callers 2

set_kbr_defaultFunction · 0.85
read_inputdevice_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected