From 0c463d4b881df5afcb2eacbfd856eb7ddd2f488d Mon Sep 17 00:00:00 2001 From: RL-Xiang Date: Wed, 2 Sep 2026 22:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FancyInput/MainWindow.xaml.cs | 22 ---------------------- 1 file changed, 22 deletions(-) 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}"; } }