From 005899c17c6ce3382841302a96eab34b045c1142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <1464576565@qq.com> Date: Mon, 23 Mar 2026 13:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=BC=A0=E6=A0=87=E5=B1=8F?= =?UTF-8?q?=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/InputGlyph/Core/InputDeviceWatcher.cs | 8 ++++---- Runtime/UXComponent/Navigation/UXInputModeService.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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");