清理注释 #1

Merged
Ronald merged 1 commits from 注释清理 into main 2026-09-02 22:03:11 +08:00
Showing only changes of commit 0c463d4b88 - Show all commits
-22
View File
@@ -50,7 +50,6 @@ namespace FancyInput
//private bool _hidHideEnabled = false; //private bool _hidHideEnabled = false;
public bool IsConfigLoaded= false; public bool IsConfigLoaded= false;
public MainWindowViewModel ViewModel { get; set; } public MainWindowViewModel ViewModel { get; set; }
//public ConsoleWindow ConsoleWindow { get; set; } = new ConsoleWindow();
public FancyInputMainWindow() public FancyInputMainWindow()
{ {
InitializeComponent(); InitializeComponent();
@@ -74,27 +73,6 @@ namespace FancyInput
{ {
if (ViewModel.DetectInput) 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}"; ViewModel.InputDetectString = $"{e}";
} }
} }