Merge pull request '清理注释' (#1) from 注释清理 into main
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user