From 40cba3ad44e0330afbcbbf39e97894fc33c9b7f2 Mon Sep 17 00:00:00 2001 From: Music_Die Date: Fri, 10 Mar 2023 09:06:13 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/Basal/IFox.Basal.Shared/WindowsAPI?= =?UTF-8?q?/MouseHook.cs.=20=E8=A1=A5=E5=85=85=E4=B8=AD=E9=94=AE=E5=8F=8C?= =?UTF-8?q?=E5=87=BB=E5=92=8C=E5=BC=B9=E8=B5=B7=E5=8A=A8=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Music_Die --- src/Basal/IFox.Basal.Shared/WindowsAPI/MouseHook.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Basal/IFox.Basal.Shared/WindowsAPI/MouseHook.cs b/src/Basal/IFox.Basal.Shared/WindowsAPI/MouseHook.cs index 400e4a7..b314318 100644 --- a/src/Basal/IFox.Basal.Shared/WindowsAPI/MouseHook.cs +++ b/src/Basal/IFox.Basal.Shared/WindowsAPI/MouseHook.cs @@ -1,4 +1,4 @@ -namespace IFoxCAD.Basal; +namespace IFoxCAD.Basal; public class MouseHook { @@ -172,6 +172,16 @@ bool HookTask(int nCode, int wParam, IntPtr lParam) _clickCount = 1; _ck = true; break; + case WM.WM_MBUTTONUP: + _button = MouseButtons.Middle; + _clickCount = 1; + _up = true; + break; + case WM.WM_MBUTTONDBLCLK: + _button = MouseButtons.Middle; + _clickCount = 2; + _ck = true; + break; case WM.WM_MOUSEWHEEL: // 滚轮 break; -- Gitee