Example #1
0
func (c *Gogol) Keyboard(key gogol.Key, isDown bool) {
	if !isDown {
		return
	}
	switch key {
	case '.':
		c.scale++
	case ',':
		c.scale--
	case gogol.KeySpace:
		c.seq.Toggle()

		if c.seq.IsPlaying {
			gogol.HideCursor()
		} else {
			gogol.ShowCursor()
		}
	case gogol.KeyEsc:
		os.Exit(0)
	}
}
Example #2
0
func (c *Gogol) Ready() {
	c.seq.Play(speed)
	gogol.HideCursor()
	gogol.FullScreen()
}