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

Function inputdevice_updateconfig

src/inputdevice.cpp:8302–8320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8300}
8301
8302void 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

Callers 10

keybuf_initFunction · 0.85
inputdevice_checkconfigFunction · 0.85
inputdevice_copyconfigFunction · 0.85
do_start_programFunction · 0.85
real_main2Function · 0.85
clearallkeysFunction · 0.85
render_panel_customFunction · 0.85

Calls 3

set_config_changedFunction · 0.85

Tested by

no test coverage detected