diff --git a/XOutput/App.xaml b/XOutput/App.xaml index 4ad2566d..914a9e54 100644 --- a/XOutput/App.xaml +++ b/XOutput/App.xaml @@ -24,5 +24,6 @@ + diff --git a/XOutput/Devices/Input/InputDiagnostics.cs b/XOutput/Devices/Input/InputDiagnostics.cs index 26ab147e..9fcdd528 100644 --- a/XOutput/Devices/Input/InputDiagnostics.cs +++ b/XOutput/Devices/Input/InputDiagnostics.cs @@ -26,6 +26,7 @@ public IEnumerable GetResults() GetButtonsResult(), GetDPadResult(), GetForceFeedbackResult(), + GetSlidersResult(), }; } @@ -48,6 +49,17 @@ public DiagnosticsResult GetAxesResult() return result; } + public DiagnosticsResult GetSlidersResult() + { + int slidersCount = device.Sliders.Count(); + return new DiagnosticsResult + { + Value = slidersCount, + Type = InputDiagnosticsTypes.SlidersCount, + State = DiagnosticsResultState.Passed, + }; + } + public DiagnosticsResult GetButtonsResult() { int buttonsCount = device.Buttons.Count(); diff --git a/XOutput/Devices/Input/InputDiagnosticsTypes.cs b/XOutput/Devices/Input/InputDiagnosticsTypes.cs index e73c6bb4..bef36a75 100644 --- a/XOutput/Devices/Input/InputDiagnosticsTypes.cs +++ b/XOutput/Devices/Input/InputDiagnosticsTypes.cs @@ -8,10 +8,10 @@ namespace XOutput.Devices.Input { public enum InputDiagnosticsTypes { - AxesCount, ButtonsCount, DPadCount, + SlidersCount, ForceFeedbackCount, } } diff --git a/XOutput/Resources/languages.txt b/XOutput/Resources/languages.txt index 28e48d6e..e53417b2 100644 --- a/XOutput/Resources/languages.txt +++ b/XOutput/Resources/languages.txt @@ -40,7 +40,19 @@ WaitingForInputFor=Waiting for input for Keyboard=Keyboard Warning=Warning Error=Error +True=true +False=false Test=Test +System=System +DiagnosticsMenu=Diagnostics +InputDiagnosticsTypes.AxesCount=Axes count +InputDiagnosticsTypes.ButtonsCount=Buttons count +InputDiagnosticsTypes.DPadCount=DPad count +InputDiagnosticsTypes.SlidersCount=Sliders count +InputDiagnosticsTypes.ForceFeedbackCount=Force feedback motors count +XInputDiagnosticsTypes.XDevice=Virtualization software is installed +XInputDiagnosticsTypes.ScpDevice=SCPToolkit is installed +XInputDiagnosticsTypes.VigemDevice=ViGEm is installed VersionCheckError=There was an error while checking for updates. VersionCheckNewRelease=This is a development release. VersionCheckUpToDate=The software is up to date. @@ -269,6 +281,18 @@ Keyboard=Billentyűzet Warning=Figyelmeztetés Error=Hiba Test=Teszt +True=igaz +False=hamis +System=Rendszer +DiagnosticsMenu=Diagnosztika +InputDiagnosticsTypes.AxesCount=Tengelyek száma +InputDiagnosticsTypes.ButtonsCount=Gombok száma +InputDiagnosticsTypes.DPadCount=DPadok száma +InputDiagnosticsTypes.SlidersCount=Csúszkák száma +InputDiagnosticsTypes.ForceFeedbackCount=Rezgő motorok száma +XInputDiagnosticsTypes.XDevice=Virtualizációs szoftver telepítve +XInputDiagnosticsTypes.ScpDevice=SCPToolkit telepítve +XInputDiagnosticsTypes.VigemDevice=ViGEm telepítve VersionCheckError=Hiba történt a frissítés keresése közben. VersionCheckNewRelease=Ez egy fejlesztői verzió. VersionCheckUpToDate=Az alkalmazás legfrissebb verzióját használja. diff --git a/XOutput/UI/Component/DiagnosticsItemView.xaml b/XOutput/UI/Component/DiagnosticsItemView.xaml index 4b883f75..60dbd14f 100644 --- a/XOutput/UI/Component/DiagnosticsItemView.xaml +++ b/XOutput/UI/Component/DiagnosticsItemView.xaml @@ -4,39 +4,68 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:XOutput.UI.Component" + xmlns:diagnostics="clr-namespace:XOutput.Diagnostics" mc:Ignorable="d" d:DataContext="{d:DesignInstance Type=local:DiagnosticsItemViewModel, IsDesignTimeCreatable=False}" d:DesignHeight="30" d:DesignWidth="490"> - - - - - - - - + + + + + + + + + + + + + + - -