mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-19 02:12:46 +01:00
test.go
This commit is contained in:
8
test.go
8
test.go
@@ -18,6 +18,9 @@ import (
|
||||
"github.com/cuu/gogame/time"
|
||||
)
|
||||
|
||||
const (
|
||||
RUNEVT=1
|
||||
)
|
||||
func run() int {
|
||||
|
||||
width := 320
|
||||
@@ -82,7 +85,8 @@ func run() int {
|
||||
|
||||
display.Flip()
|
||||
|
||||
|
||||
event.AddCustomEvent(RUNEVT)
|
||||
|
||||
running := true
|
||||
for running {
|
||||
ev := event.Wait()
|
||||
@@ -106,7 +110,7 @@ func run() int {
|
||||
time.Delay(1000)
|
||||
}
|
||||
if ev.Data["Key"] == "P" {
|
||||
event.Post(event.RUNEVT,"GODEBUG=cgocheck=0 sucks") // just id and string, simplify the stuff
|
||||
event.Post(RUNEVT,"GODEBUG=cgocheck=0 sucks") // just id and string, simplify the stuff
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user