| 8300 | } |
| 8301 | |
| 8302 | void inputdevice_updateconfig (struct uae_prefs *srcprefs, struct uae_prefs *dstprefs) |
| 8303 | { |
| 8304 | inputdevice_updateconfig_internal (srcprefs, dstprefs); |
| 8305 | |
| 8306 | set_config_changed (); |
| 8307 | |
| 8308 | for (int i = 0; i < MAX_JPORTS; i++) { |
| 8309 | inputdevice_store_used_device(&dstprefs->jports[i], i, false); |
| 8310 | } |
| 8311 | |
| 8312 | #ifdef RETROPLATFORM |
| 8313 | rp_input_change (0); |
| 8314 | rp_input_change (1); |
| 8315 | rp_input_change (2); |
| 8316 | rp_input_change (3); |
| 8317 | for (int i = 0; i < MAX_JPORTS; i++) |
| 8318 | rp_update_gameport (i, -1, 0); |
| 8319 | #endif |
| 8320 | } |
| 8321 | |
| 8322 | /* called when devices get inserted or removed |
| 8323 | * store old devices temporarily, enumerate all devices |
no test coverage detected