From 4091c57320c7d641654f0dfd33cbba065b43e550 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 9 Apr 2021 08:23:47 +0000 Subject: [PATCH] CtrlCore: GetMouseRight barrel support git-svn-id: svn://ultimatepp.org/upp/trunk@15907 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlCore/Win32Proc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/CtrlCore/Win32Proc.cpp b/uppsrc/CtrlCore/Win32Proc.cpp index a82d5f84f..a7e946213 100644 --- a/uppsrc/CtrlCore/Win32Proc.cpp +++ b/uppsrc/CtrlCore/Win32Proc.cpp @@ -53,7 +53,7 @@ bool GetCtrl() { return !!(GetKeyStateSafe(VK_CONTROL) & 0x8000); } bool GetAlt() { return !!(GetKeyStateSafe(VK_MENU) & 0x8000); } bool GetCapsLock() { return !!(GetKeyStateSafe(VK_CAPITAL) & 1); } bool GetMouseLeft() { return pendown || !!(GetKeyStateSafe(VK_LBUTTON) & 0x8000); } -bool GetMouseRight() { return !!(GetKeyStateSafe(VK_RBUTTON) & 0x8000); } +bool GetMouseRight() { return Ctrl::GetPenInfo().barrel || !!(GetKeyStateSafe(VK_RBUTTON) & 0x8000); } bool GetMouseMiddle() { return !!(GetKeyStateSafe(VK_MBUTTON) & 0x8000); } Point Ctrl::CurrentMousePos;