diff --git a/Runtime/InputGlyph/Core/InputDeviceWatcher.cs b/Runtime/InputGlyph/Core/InputDeviceWatcher.cs index 0fc4f71..d5911aa 100644 --- a/Runtime/InputGlyph/Core/InputDeviceWatcher.cs +++ b/Runtime/InputGlyph/Core/InputDeviceWatcher.cs @@ -115,10 +115,10 @@ public static class InputDeviceWatcher _anyInputAction = new InputAction("AnyDevice", InputActionType.PassThrough); _anyInputAction.AddBinding("/anyKey"); //为防止误触 暂时屏蔽鼠标检测 - // _anyInputAction.AddBinding("/delta"); - // _anyInputAction.AddBinding("/leftButton"); - // _anyInputAction.AddBinding("/rightButton"); - // _anyInputAction.AddBinding("/middleButton"); + _anyInputAction.AddBinding("/delta"); + _anyInputAction.AddBinding("/leftButton"); + _anyInputAction.AddBinding("/rightButton"); + _anyInputAction.AddBinding("/middleButton"); // _anyInputAction.AddBinding("/scroll"); _anyInputAction.AddBinding("/*"); _anyInputAction.AddBinding("/*"); diff --git a/Runtime/UXComponent/Navigation/UXInputModeService.cs b/Runtime/UXComponent/Navigation/UXInputModeService.cs index 399578f..4c87e48 100644 --- a/Runtime/UXComponent/Navigation/UXInputModeService.cs +++ b/Runtime/UXComponent/Navigation/UXInputModeService.cs @@ -77,8 +77,8 @@ namespace UnityEngine.UI _pointerAction = new InputAction("UXPointerInput", InputActionType.PassThrough); _pointerAction.AddBinding("/anyKey"); - // _pointerAction.AddBinding("/delta"); - // _pointerAction.AddBinding("/scroll"); + _pointerAction.AddBinding("/delta"); + _pointerAction.AddBinding("/scroll"); _pointerAction.AddBinding("/leftButton"); _pointerAction.AddBinding("/rightButton"); _pointerAction.AddBinding("/middleButton");