| 5903 | } |
| 5904 | |
| 5905 | static void inputdevice_checkconfig (void) |
| 5906 | { |
| 5907 | bool changed = false; |
| 5908 | for (int i = 0; i < MAX_JPORTS; i++) { |
| 5909 | if (currprefs.jports[i].id != changed_prefs.jports[i].id || |
| 5910 | currprefs.jports[i].mode != changed_prefs.jports[i].mode || |
| 5911 | currprefs.jports[i].submode != changed_prefs.jports[i].submode || |
| 5912 | currprefs.jports[i].autofire != changed_prefs.jports[i].autofire || |
| 5913 | _tcscmp(currprefs.jports_custom[i].custom, changed_prefs.jports_custom[i].custom)) |
| 5914 | changed = true; |
| 5915 | } |
| 5916 | |
| 5917 | if (changed || |
| 5918 | currprefs.input_selected_setting != changed_prefs.input_selected_setting || |
| 5919 | currprefs.input_joymouse_multiplier != changed_prefs.input_joymouse_multiplier || |
| 5920 | currprefs.input_joymouse_deadzone != changed_prefs.input_joymouse_deadzone || |
| 5921 | currprefs.input_joystick_deadzone != changed_prefs.input_joystick_deadzone || |
| 5922 | currprefs.input_joymouse_speed != changed_prefs.input_joymouse_speed || |
| 5923 | currprefs.input_autofire_linecnt != changed_prefs.input_autofire_linecnt || |
| 5924 | currprefs.input_autoswitch != changed_prefs.input_autoswitch || |
| 5925 | currprefs.input_autoswitchleftright != changed_prefs.input_autoswitchleftright || |
| 5926 | currprefs.input_device_match_mask != changed_prefs.input_device_match_mask || |
| 5927 | currprefs.input_mouse_speed != changed_prefs.input_mouse_speed || |
| 5928 | currprefs.input_tablet != changed_prefs.input_tablet) { |
| 5929 | |
| 5930 | currprefs.input_selected_setting = changed_prefs.input_selected_setting; |
| 5931 | currprefs.input_joymouse_multiplier = changed_prefs.input_joymouse_multiplier; |
| 5932 | currprefs.input_joymouse_deadzone = changed_prefs.input_joymouse_deadzone; |
| 5933 | currprefs.input_joystick_deadzone = changed_prefs.input_joystick_deadzone; |
| 5934 | currprefs.input_joymouse_speed = changed_prefs.input_joymouse_speed; |
| 5935 | currprefs.input_autofire_linecnt = changed_prefs.input_autofire_linecnt; |
| 5936 | currprefs.input_mouse_speed = changed_prefs.input_mouse_speed; |
| 5937 | currprefs.input_autoswitch = changed_prefs.input_autoswitch; |
| 5938 | currprefs.input_autoswitchleftright = changed_prefs.input_autoswitchleftright; |
| 5939 | currprefs.input_device_match_mask = changed_prefs.input_device_match_mask; |
| 5940 | currprefs.input_tablet = changed_prefs.input_tablet; |
| 5941 | |
| 5942 | inputdevice_updateconfig (&changed_prefs, &currprefs); |
| 5943 | } |
| 5944 | if (currprefs.dongle != changed_prefs.dongle) { |
| 5945 | currprefs.dongle = changed_prefs.dongle; |
| 5946 | dongle_reset (); |
| 5947 | } |
| 5948 | } |
| 5949 | |
| 5950 | void inputdevice_vsync (void) |
| 5951 | { |
no test coverage detected