-
Notifications
You must be signed in to change notification settings - Fork 0
/
responder.go
27 lines (24 loc) · 943 Bytes
/
responder.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package suslik
type Responder interface {
Render()
Resize(width, height float32)
Preload()
Setup()
Close()
Update(dt float32)
Mouse(x, y float32, button Key, action Action)
Scroll(amount float32)
Key(key Key, modifier Modifier, action Action)
Type(char rune)
}
type Game struct{}
func (g *Game) Preload() {}
func (g *Game) Setup() {}
func (g *Game) Close() {}
func (g *Game) Update(dt float32) {}
func (g *Game) Render() {}
func (g *Game) Resize(w, h float32) {}
func (g *Game) Mouse(x, y float32, button Key, action Action) {}
func (g *Game) Scroll(amount float32) {}
func (g *Game) Key(key Key, modifier Modifier, action Action) {}
func (g *Game) Type(char rune) {}