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

Function remove_custom_config

src/inputdevice.cpp:7421–7428  ·  view source on GitHub ↗

remove all gameports mappings mapped to port 'index'

Source from the content-addressed store, hash-verified

7419
7420// remove all gameports mappings mapped to port 'index'
7421static void remove_custom_config (struct uae_prefs *prefs, int index)
7422{
7423 for (int l = 0; l < MAX_INPUT_DEVICES; l++) {
7424 cleardev_custom(joysticks, l, index);
7425 cleardev_custom(mice, l, index);
7426 cleardevkbr_custom (keyboards, l, index);
7427 }
7428}
7429
7430// prepare port for custom mapping, remove all current Amiga side device mappings
7431void inputdevice_compa_prepare_custom (struct uae_prefs *prefs, int index, int newmode, bool removeold)

Callers 2

compatibility_copyFunction · 0.85

Calls 2

cleardev_customFunction · 0.85
cleardevkbr_customFunction · 0.85

Tested by

no test coverage detected