Removed the need for a quit handler
This commit is contained in:
@@ -29,7 +29,6 @@ func main () {
|
||||
application.OnPress(onPress)
|
||||
application.OnRelease(onRelease)
|
||||
application.OnMouseMove(onMouseMove)
|
||||
application.OnQuit(onQuit)
|
||||
|
||||
err = application.Run()
|
||||
if err != nil { panic(err) }
|
||||
@@ -56,7 +55,3 @@ func onMouseMove (x, y int) { if mousePressed {
|
||||
application.Draw()
|
||||
}
|
||||
}
|
||||
|
||||
func onQuit () {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user