diff --git a/FancyInput/MainWindow.xaml.cs b/FancyInput/MainWindow.xaml.cs index 1001202..1236aae 100644 --- a/FancyInput/MainWindow.xaml.cs +++ b/FancyInput/MainWindow.xaml.cs @@ -50,7 +50,6 @@ namespace FancyInput //private bool _hidHideEnabled = false; public bool IsConfigLoaded= false; public MainWindowViewModel ViewModel { get; set; } - //public ConsoleWindow ConsoleWindow { get; set; } = new ConsoleWindow(); public FancyInputMainWindow() { InitializeComponent(); @@ -74,27 +73,6 @@ namespace FancyInput { if (ViewModel.DetectInput) { - //if (e.Device == Models.InputDevice.MouseMove && e.MoveState == MoveState.Moving) return; - //if (e.Device == Models.InputDevice.MouseMove || e.Device == Models.InputDevice.MouseButton || e.Device == Models.InputDevice.MouseWheel) return; - //if (e.Device is Models.InputDevice.XInputButton or Models.InputDevice.XInputTrigger or Models.InputDevice.XInputStick - // or Models.InputDevice.SDLButton or Models.InputDevice.SDLTrigger or Models.InputDevice.SDLStick - // && e.GamepadUserIdx == GamepadUserIdx.One) - //{ - // if (TryMirrorRealGamepadToVirtual(e)) - // { - // //ViewModel.InputDetectString = $"MirrorGamepad: {e}"; - // return; - // } - //} - //if (e.Device == Models.InputDevice.Keyboard && e.RawKey.HasValue) - //{ - // if (TrySendVirtualGamepadTestInput(e.RawKey.Value, e.State ?? ButtonState.Released)) - // { - // ViewModel.InputDetectString = $"GamepadTest: {e.RawKey} {e.State}"; - // return; - // } - //} - //else ViewModel.InputDetectString = $"{e}"; } }