INNER CODE UNIT · Go

kev

g3n/g3nd · app/app.go:191

		kev := ev.(*window.KeyEvent)
		if kev.Key == window.KeyEscape { // ESC terminates the program
			a.Exit()
		} else if kev.Key == window.KeyF11 { // F11 toggles full screen
			a.SetFullScreen(!a.FullScreen())
		} else if kev.Key == window.KeyS && kev.Mods == window.ModAlt { // Ctr-S prints statistics in the console
			a.logStats()
		}
	})

	// Setup scene
	a.setupScene()

	// If name of test supplied in the command line
	// set it as the current test and initialize it.
	if len(flag.Args()) > 0 {
		tname := flag.Args()[0]
		a.log.Info("ARGS")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…