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

Struct Button

button.go:4–7  ·  view source on GitHub ↗

A Button is an input which can be either JustPressed, JustReleased or Down. Common uses would be for, a jump key or an action key.

Source from the content-addressed store, hash-verified

2
3// A Button is an input which can be either JustPressed, JustReleased or Down. Common uses would be for, a jump key or an action key.
4type Button struct {
5 Triggers []Key
6 Name string
7}
8
9// JustPressed checks whether an input was pressed in the previous frame.
10func (b Button) JustPressed() bool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected