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

Function matchdevices_all

src/inputdevice.cpp:8121–8137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8119}
8120
8121static void matchdevices_all (struct uae_prefs *prefs)
8122{
8123 for (int i = 1; i < MAX_INPUT_SETTINGS; i++) {
8124 matchdevices(prefs, &idev[IDTYPE_MOUSE], prefs->mouse_settings[i], IDTYPE_MOUSE, prefs->input_device_match_mask);
8125 matchdevices(prefs, &idev[IDTYPE_JOYSTICK], prefs->joystick_settings[i], IDTYPE_JOYSTICK, prefs->input_device_match_mask);
8126 matchdevices(prefs, &idev[IDTYPE_KEYBOARD], prefs->keyboard_settings[i], IDTYPE_KEYBOARD, INPUT_MATCH_ALL);
8127 }
8128 for (int i = 0; i < MAX_INPUT_DEVICES; i++) {
8129 for (int j = 0; j < IDTYPE_MAX; j++) {
8130 gp_swappeddevices[i][j] = -1;
8131 }
8132 }
8133 matchdevices(prefs, &idev[IDTYPE_MOUSE], prefs->mouse_settings[0], IDTYPE_MOUSE, prefs->input_device_match_mask);
8134 matchdevices(prefs, &idev[IDTYPE_JOYSTICK], prefs->joystick_settings[0], IDTYPE_JOYSTICK, prefs->input_device_match_mask);
8135 matchdevices(prefs, &idev[IDTYPE_KEYBOARD], prefs->keyboard_settings[0], IDTYPE_KEYBOARD, INPUT_MATCH_ALL);
8136
8137}
8138
8139bool inputdevice_set_gameports_mapping (struct uae_prefs *prefs, int devnum, int num, int evtnum, uae_u64 flags, int port, int input_selected_setting)
8140{

Callers 2

inputdevice_devicechangeFunction · 0.85

Calls 1

matchdevicesFunction · 0.85

Tested by

no test coverage detected