清理注释

This commit is contained in:
RL-Xiang
2026-09-02 22:03:11 +08:00
parent d80276d867
commit 0c463d4b88
-22
View File
@@ -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}";
}
}