148 Commits

Author SHA1 Message Date
b063523474 Fix row counting offset. 2023-06-16 19:58:40 -05:00
d08769ec83 Rearrange order of getting pixels when saving to data. 2023-06-16 19:53:56 -05:00
3a30d4d836 Fix light data loop 2023-06-16 19:46:07 -05:00
12ec38ae96 Implement SMX PGEX 2023-06-16 19:33:55 -05:00
5979eddc21 Setup project with SMX linked. 2023-06-16 18:51:30 -05:00
Glenn Maynard
60e84d3f80 Clarify the LED layout. #2 2021-04-19 02:25:07 -05:00
Glenn Maynard
fc58467224 Change the "panel test mode" label to "raw panel display", since it's confusing to some users. 2020-12-14 23:46:37 -06:00
Glenn Maynard
19b27cd333 Fix crash formatting error messages on non-English systems, because vssprintf was returning -1. 2020-04-03 02:17:33 -05:00
Glenn Maynard
aebf306484 Fix animations being enabled on gen1-3 platforms when they shouldn't be.
Animations should be enabled only if the user selects "GIF animations".  They were
being enabled when in the default panel color mode, which was confusing and not intended.
2020-03-29 23:37:53 -05:00
Glenn Maynard
36b006028a Make SMXPanelAnimation stop temporarily if lights are set in another way.
This is a simple way of making it so things like the "light panels" button don't fight
with animations.
2020-03-29 23:36:27 -05:00
Glenn Maynard
81eaae1f51 Remove unused useDefault parameter. 2020-03-29 23:32:27 -05:00
Glenn Maynard
96598ef59b Reset the floor color on factory reset. 2020-03-18 21:13:55 -05:00
Glenn Maynard
769bb597ca Add up and down arrows to DoubleSlider, to show that the right thumb is for presses and the left is for releases. 2019-10-29 16:28:42 -05:00
Glenn Maynard
f7453a1600 Add an error check for invalid JSON when importing a configuration. 2019-10-14 01:09:34 -05:00
Glenn Maynard
219f407246 Fix JSON ParseError exporting settings if custom settings have never been edited. 2019-10-14 01:06:20 -05:00
Glenn Maynard
7c6b64c13e Use CheckRunning to close SMXConfig before uninstalls too. 2019-10-06 23:37:28 -05:00
Glenn Maynard
5508c42b10 Make the installer shut the application down (or ask the user to do it if it's a version before SMXConfigShutdown). 2019-10-06 03:59:07 -05:00
Glenn Maynard
54003cd6a3 Add an SMXConfigShutdown event to allow the installer to close the application automatically. 2019-10-06 03:58:20 -05:00
Glenn Maynard
f85058e499 Remove unused AllocConsole binding.
This doesn't cause problems since it's never called, but it's never called.
2019-10-06 02:43:15 -05:00
Glenn Maynard
0f74ffb832 Try to work around some broken antiviruses causing WPF to not be able to save settings. 2019-10-06 02:01:13 -05:00
Glenn Maynard
bd052f08ef Use OnClick instead of Checked and Unchecked.
Checked and Unchecked are called at weird, unpredictable times by WPF, and saving
settings when they happen causes us to change the setting incorrectly.  OnClick is
only called when the user actually changes the value and not when internal WPF stuff
sets it, so it doesn't have this problem.
2019-10-06 02:00:54 -05:00
Glenn Maynard
bb3ee5a0c9 Only recreate sliders when the sensitivity tab is selected, rather than on every tab change. 2019-10-06 01:14:52 -05:00
Glenn Maynard
7171330abd Update the wording for the custom sensor dialog. 2019-10-03 20:43:46 -05:00
Glenn Maynard
1014a26940 Fix the version label getting cut off. 2019-10-03 20:27:37 -05:00
Glenn Maynard
102fe2f9f9 Make the platform lights slider update directly when dragged, so we can delay config updates.
This is just a safeguard to prevent hammering the EEPROM erase cycles.  It also
makes the platform slider update more smoothly (previously it would only update
at a few FPS since it was using config changes).
2019-10-03 20:27:37 -05:00
Glenn Maynard
48fe72af4a Update the EnableCenterTopSensorCheckbox label. 2019-10-03 20:27:37 -05:00
Glenn Maynard
dffe001bec Tighten the high preset a bit. 2019-10-03 20:27:37 -05:00
Glenn Maynard
d4c71941eb Implement separate inner and outer threshold sliders, and a custom threshold slider. 2019-10-03 20:27:37 -05:00
Glenn Maynard
18475afbf8 Change ThresholdSlider to a grid, to make things easier to position. StackPanel is too limited for this. 2019-10-01 22:22:21 -05:00
Glenn Maynard
883d87779a Add aux sensors. 2019-10-01 22:22:21 -05:00
Glenn Maynard
3bb92a0b24 Fix the visible threshold sliders not updating when enabled panels are changed. 2019-09-22 20:31:18 -05:00
Glenn Maynard
dbb4ecc530 Refactor the way threshold sliders are associated with sensors.
This makes it possible to have sliders that influence arbitrary sensors.
2019-09-22 20:20:16 -05:00
Glenn Maynard
8620da2405 Refactor displaying threshold sliders.
Instead of having the sliders show and hide themselves, create the ones that are
active in MainWindow.
2019-09-18 22:00:42 -05:00
Glenn Maynard
ae25ed327a Fix AreUnifiedThresholdsSynced modifying config. 2019-09-18 21:59:03 -05:00
Glenn Maynard
baf9b47fe9 Add an internal API to assign serial numbers. 2019-09-17 23:40:47 -05:00
Glenn Maynard
109cd1f6f6 Fix highlighting selected diagnostics buttons on P2. 2019-09-14 21:30:08 -05:00
Glenn Maynard
bbb49b6ae4 Show a warning if the low FSR threshold is set too low. 2019-09-14 21:18:42 -05:00
Glenn Maynard
37e5b445cd Fix exporting load cell thresholds to JSON. 2019-09-14 21:17:52 -05:00
Glenn Maynard
80b08dbe0c Fix exception parsing empty JSON arrays. 2019-09-14 21:17:18 -05:00
Glenn Maynard
63f7aa5beb Adjust the high FSR preset.
The 100-112 thresholds are extremely low, and don't work for all play styles, since
with harder presses, the 100 low threshold may not be reached quickly enough, which
causes missed inputs.  Raise the high preset thresholds to something more reasonable.
Users can still set the lower values in the advanced tab if it works for them.
This might be tuned further.

This won't affect users who are already set to the higher thresholds, since it'll
just act like custom thresholds.  To update thresholds to the new values, click the
"High" preset button again.
2019-09-11 17:53:05 -05:00
Glenn Maynard
67a1789ea2 Update SDK documentation for SMX_SetLights2. 2019-07-18 20:41:12 -05:00
Glenn Maynard
12794762a8 Fix "light panels" getting stuck on if the controller is disconnected while the button is pressed. 2019-07-18 20:25:47 -05:00
Glenn Maynard
672541015f Add SMX_SetOnlySendLightsOnChange for smx-panel-test. 2019-07-18 20:25:47 -05:00
Glenn Maynard
69b2239922 Refactor SMXManager::SendLightUpdates to queue multiple lights commands if possible.
This also fixes a memory leak if lights are queued too quickly.
2019-07-18 20:25:47 -05:00
Glenn Maynard
0c19451d7d Show the diagnostics mode dropdown by default. 2019-07-18 20:25:47 -05:00
Glenn Maynard
ec848441d7 Update SDKSample to use SMX_SetLights2 and set the new panel lights. 2019-07-18 20:25:47 -05:00
Glenn Maynard
c53c3d45c6 Make sure we don't send lights commands before we have a config packet, and adjust the V3 command timing. 2019-07-18 20:25:47 -05:00
Glenn Maynard
1959a1eaa9 Hide the floor lighting button on older pads. 2019-07-18 20:25:47 -05:00
Glenn Maynard
3d6a3008ae Fix the center preset to match the firmware and the game. 2019-07-18 20:25:47 -05:00
Glenn Maynard
6249359373 Add an option to enable the center panel top sensor. 2019-07-18 20:25:47 -05:00