CtrlCore: GetMouseRight barrel support

git-svn-id: svn://ultimatepp.org/upp/trunk@15907 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-04-09 08:23:47 +00:00
parent acb4342581
commit 4091c57320

View file

@ -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;