(dt float32)
| 52 | } |
| 53 | |
| 54 | func (c *InputSystem) Update(dt float32) { |
| 55 | if v := engo.Input.Axis("sideways").Value(); v != 0 { |
| 56 | fmt.Println(v) |
| 57 | } |
| 58 | |
| 59 | if btn := engo.Input.Button("action"); btn.JustPressed() { |
| 60 | fmt.Println("DOWN!") |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func main() { |
| 65 | opts := engo.RunOptions{ |
nothing calls this directly
no test coverage detected