summaryrefslogtreecommitdiffstats
path: root/win/tkWinPointer.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2019-07-21 08:50:46 (GMT)
committerfvogel <fvogelnew1@free.fr>2019-07-21 08:50:46 (GMT)
commitaf74667a3164ac1633298b6881a27e4ecd070c38 (patch)
tree120f32af0ae98506cb01bdebcfd1546ec6e3c4fb /win/tkWinPointer.c
parent41bb9d8273752f7b46aa4658ff4efeb7cc27f2b6 (diff)
downloadtk-af74667a3164ac1633298b6881a27e4ecd070c38.zip
tk-af74667a3164ac1633298b6881a27e4ecd070c38.tar.gz
tk-af74667a3164ac1633298b6881a27e4ecd070c38.tar.bz2
Fix [1fb7af623a]: Support for buttons 4 and 5 is missing for Windows. Patch from Christopher Chavez
Diffstat (limited to 'win/tkWinPointer.c')
-rw-r--r--win/tkWinPointer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/win/tkWinPointer.c b/win/tkWinPointer.c
index 6f1f840..251b5b9 100644
--- a/win/tkWinPointer.c
+++ b/win/tkWinPointer.c
@@ -81,6 +81,12 @@ TkWinGetModifierState(void)
if (GetKeyState(VK_RBUTTON) & 0x8000) {
state |= Button3Mask;
}
+ if (GetKeyState(VK_XBUTTON1) & 0x8000) {
+ state |= Button4Mask;
+ }
+ if (GetKeyState(VK_XBUTTON2) & 0x8000) {
+ state |= Button5Mask;
+ }
return state;
}