update gogame ,set EasingDur=1

This commit is contained in:
cuu
2021-10-11 21:18:46 +08:00
parent 39408ba536
commit 21ae3d9358
4 changed files with 13 additions and 4 deletions

View File

@@ -343,7 +343,15 @@ func run() int {
running := true
for running {
peeped := event.Peep(true,sdl.KEYDOWN,sdl.KEYUP)
if peeped > 1 {
fmt.Println("event Peeped: ",peeped)
event.Clear(sdl.KEYDOWN)
event.Clear(sdl.KEYUP)
continue
}
ev := event.Poll()
//fmt.Println(ev.Data["Repeat"]) //0 or "" ,1
if ev.Type == event.QUIT {
running = false
break
@@ -443,6 +451,7 @@ func run() int {
}
if ev.Type == event.KEYDOWN {
everytime_keydown = gotime.Now()
if RestoreLastBackLightBrightness(main_screen) == false {
continue