mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 05:24:36 +02:00
update gogame ,set EasingDur=1
This commit is contained in:
9
main.go
9
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user