summaryrefslogtreecommitdiffstatshomepage
path: root/mouseevent.go
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2015-09-21 11:01:34 +0200
committerAlexander Neumann <alexander.neumann@picos-software.com>2015-09-21 11:01:34 +0200
commit006d27dfe735036d89c518ff14b33530f4c9c36f (patch)
tree20cbc1cdf819bc95187549e46a8962ec2c7fec19 /mouseevent.go
parentMerge branch 'master' of github.com:lxn/walk (diff)
downloadwireguard-windows-006d27dfe735036d89c518ff14b33530f4c9c36f.tar.xz
wireguard-windows-006d27dfe735036d89c518ff14b33530f4c9c36f.zip
Fix mouse events
Diffstat (limited to 'mouseevent.go')
-rw-r--r--mouseevent.go10
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)