diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2015-09-21 11:01:34 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2015-09-21 11:01:34 +0200 |
commit | 006d27dfe735036d89c518ff14b33530f4c9c36f (patch) | |
tree | 20cbc1cdf819bc95187549e46a8962ec2c7fec19 /mouseevent.go | |
parent | Merge branch 'master' of github.com:lxn/walk (diff) | |
download | wireguard-windows-006d27dfe735036d89c518ff14b33530f4c9c36f.tar.xz wireguard-windows-006d27dfe735036d89c518ff14b33530f4c9c36f.zip |
Fix mouse events
Diffstat (limited to 'mouseevent.go')
-rw-r--r-- | mouseevent.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mouseevent.go b/mouseevent.go index f8abbd80..5f48ff5c 100644 --- a/mouseevent.go +++ b/mouseevent.go @@ -6,12 +6,16 @@ package walk +import ( + "github.com/lxn/win" +) + type MouseButton int const ( - LeftButton MouseButton = iota - RightButton - MiddleButton + LeftButton MouseButton = win.MK_LBUTTON + RightButton MouseButton = win.MK_RBUTTON + MiddleButton MouseButton = win.MK_MBUTTON ) type MouseEventHandler func(x, y int, button MouseButton) |