summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/main.go b/test/main.go
index 60108ab..1e2b465 100644
--- a/test/main.go
+++ b/test/main.go
@@ -131,12 +131,13 @@ func (a *areaHandler) Paint(rect image.Rectangle) *image.NRGBA {
*/
return a.img.SubImage(rect).(*image.NRGBA)
}
-func (a *areaHandler) Mouse(e MouseEvent) {
+func (a *areaHandler) Mouse(e MouseEvent) bool {
fmt.Printf("%#v\n", e)
+ return false
}
-func (a *areaHandler) Key(e KeyEvent) bool {
+func (a *areaHandler) Key(e KeyEvent) (bool, bool) {
fmt.Printf("%#v\n", e)
- return false
+ return false, false
}
var doArea = flag.Bool("area", false, "run area test instead (overrides -kb)")