| 1284 | } |
| 1285 | |
| 1286 | static 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 | |
| 1304 | static void set_kbr_default (struct uae_prefs *p, int index, int devnum, struct uae_input_device_kbr_default *trans) |
| 1305 | { |
no outgoing calls
no test coverage detected