summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-27 18:31:23 -0400
committerPietro Gagliardi <[email protected]>2014-03-27 18:31:23 -0400
commit4a1d259f5c95bc3f271eaa3cfbbc110304436ee3 (patch)
treeb015cdca61dff0164ce9494af2d8e27d6c2bee4d /test/main.go
parent12bc0dc44090eeec6325e4d45ae236d811ccdb49 (diff)
Added the beginning of a keyboard input test to be written. Also more TODOs.
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/main.go b/test/main.go
index 3a20ff8..60108ab 100644
--- a/test/main.go
+++ b/test/main.go
@@ -139,7 +139,7 @@ func (a *areaHandler) Key(e KeyEvent) bool {
return false
}
-var doArea = flag.Bool("area", false, "run area test instead")
+var doArea = flag.Bool("area", false, "run area test instead (overrides -kb)")
func areaTest() {
/*
img := [2]*image.NRGBA{}
@@ -204,6 +204,10 @@ func myMain() {
areaTest()
return
}
+ if *doKeyboard {
+ kbTest()
+ return
+ }
w := NewWindow("Main Window", 320, 240)
b := NewButton("Click Me")
b2 := NewButton("Or Me")