MCPcopy
hub / github.com/EngoEngine/engo / Update

Method Update

demos/input/input.go:54–62  ·  view source on GitHub ↗
(dt float32)

Source from the content-addressed store, hash-verified

52}
53
54func (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
64func main() {
65 opts := engo.RunOptions{

Callers

nothing calls this directly

Calls 4

AxisMethod · 0.80
ButtonMethod · 0.80
ValueMethod · 0.65
JustPressedMethod · 0.45

Tested by

no test coverage detected