From 9d90dd3a29e71fe7126ec0ffa36c59cc809425b8 Mon Sep 17 00:00:00 2001 From: Lesueur Benjamin Date: Sun, 17 Sep 2023 16:27:50 +0200 Subject: [PATCH] build 0.18.0.3 --- HandheldCompanion.iss | 2 +- HandheldCompanion/Actions/GyroActions.cs | 4 + .../Controllers/IController.xaml | 101 ++-- .../Controllers/IController.xaml.cs | 73 ++- .../Controls/Mapping/GyroMapping.xaml | 54 ++ .../Controls/Mapping/GyroMapping.xaml.cs | 11 + HandheldCompanion/CustomSettingsProvider.cs | 59 ++- HandheldCompanion/Devices/Valve/SteamDeck.cs | 2 +- HandheldCompanion/HandheldCompanion.csproj | 4 +- HandheldCompanion/Helpers/RyzenSMU.cs | 209 ++++++++ HandheldCompanion/Helpers/VangoghGPU.cs | 467 ++++++++++++++++++ .../Managers/ControllerManager.cs | 54 +- HandheldCompanion/Managers/DeviceManager.cs | 233 ++++++++- HandheldCompanion/Managers/HotkeysManager.cs | 2 +- HandheldCompanion/Managers/LayoutManager.cs | 22 +- .../Managers/PerformanceManager.cs | 29 +- HandheldCompanion/Managers/PlatformManager.cs | 20 +- HandheldCompanion/Managers/ProfileManager.cs | 62 ++- HandheldCompanion/Misc/HidHide.cs | 15 +- HandheldCompanion/Misc/PnPDetails.cs | 2 +- HandheldCompanion/Platforms/GOGGalaxy.cs | 6 +- HandheldCompanion/Platforms/HWiNFO.cs | 6 +- HandheldCompanion/Platforms/IPlatform.cs | 73 +-- HandheldCompanion/Platforms/RTSS.cs | 41 +- HandheldCompanion/Platforms/SteamPlatform.cs | 74 ++- HandheldCompanion/Platforms/UbisoftConnect.cs | 6 +- HandheldCompanion/Processors/AMDProcessor.cs | 67 ++- .../Properties/Resources.Designer.cs | 54 ++ HandheldCompanion/Properties/Resources.resx | 18 + HandheldCompanion/Utils/CommonUtils.cs | 103 ---- HandheldCompanion/Utils/FileUtils.cs | 144 ++++++ HandheldCompanion/Utils/ProcessUtils.cs | 54 +- HandheldCompanion/Utils/RegistryUtils.cs | 33 ++ .../Views/Pages/ControllerPage.xaml | 145 +++--- .../Views/Pages/ControllerPage.xaml.cs | 79 ++- .../Views/Pages/LayoutPage.xaml.cs | 3 + .../Views/Pages/ProfilesPage.xaml.cs | 10 - .../QuickPages/QuickPerformancePage.xaml | 2 +- .../Views/QuickPages/QuickProfilesPage.xaml | 63 ++- .../QuickPages/QuickProfilesPage.xaml.cs | 33 +- .../Views/Windows/MainWindow.xaml.cs | 6 +- .../Views/Windows/OverlayQuickTools.xaml.cs | 4 +- HandheldCompanion/XInputPlus/XInputPlus.cs | 200 +++++--- 43 files changed, 2079 insertions(+), 570 deletions(-) create mode 100644 HandheldCompanion/Helpers/RyzenSMU.cs create mode 100644 HandheldCompanion/Helpers/VangoghGPU.cs create mode 100644 HandheldCompanion/Utils/FileUtils.cs diff --git a/HandheldCompanion.iss b/HandheldCompanion.iss index 8c9c52ae3..a641b5eba 100644 --- a/HandheldCompanion.iss +++ b/HandheldCompanion.iss @@ -389,7 +389,7 @@ end; #define MyAppSetupName 'Handheld Companion' #define MyBuildId 'HandheldCompanion' -#define MyAppVersion '0.18.0.1' +#define MyAppVersion '0.18.0.3' #define MyAppPublisher 'BenjaminLSR' #define MyAppCopyright 'Copyright @ BenjaminLSR' #define MyAppURL 'https://github.com/Valkirie/HandheldCompanion' diff --git a/HandheldCompanion/Actions/GyroActions.cs b/HandheldCompanion/Actions/GyroActions.cs index 5e2724c60..619748531 100644 --- a/HandheldCompanion/Actions/GyroActions.cs +++ b/HandheldCompanion/Actions/GyroActions.cs @@ -12,12 +12,16 @@ public class GyroActions : IActions public ButtonState MotionTrigger = new(); + public float gyroWeight = DefaultGyroWeight; + + // const vars public const int DefaultAxisAntiDeadZone = 15; public const AxisLayoutFlags DefaultAxisLayoutFlags = AxisLayoutFlags.RightStick; public const MouseActionsType DefaultMouseActionsType = MouseActionsType.Move; public const int DefaultSensivity = 33; public const int DefaultDeadzone = 10; + public const float DefaultGyroWeight = 1.2f; public GyroActions() { diff --git a/HandheldCompanion/Controllers/IController.xaml b/HandheldCompanion/Controllers/IController.xaml index 96e90617d..b73fc82c9 100644 --- a/HandheldCompanion/Controllers/IController.xaml +++ b/HandheldCompanion/Controllers/IController.xaml @@ -1,44 +1,73 @@ - + + Padding="15,12,12,12" + Background="{DynamicResource SystemControlPageBackgroundAltHighBrush}" + CornerRadius="{DynamicResource ControlCornerRadius}"> - - - - - + + + + + + - - + + - - + + - -