Browse Source

Wait to Poll

cuu 2 years ago
parent
commit
39408ba536
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.go

+ 1 - 1
main.go

@@ -343,7 +343,7 @@ func run() int {
 
 
 	running := true
 	running := true
 	for running {
 	for running {
-		ev := event.Wait()
+		ev := event.Poll()
 		if ev.Type == event.QUIT {
 		if ev.Type == event.QUIT {
 			running = false
 			running = false
 			break
 			break