MCPcopy Index your code
hub / github.com/EngoEngine/engo / Value

Method Value

axis.go:35–43  ·  view source on GitHub ↗

Value returns the value of a keypress.

()

Source from the content-addressed store, hash-verified

33
34// Value returns the value of a keypress.
35func (keys AxisKeyPair) Value() float32 {
36 if Input.keys.Get(keys.Max).Down() {
37 return AxisMax
38 } else if Input.keys.Get(keys.Min).Down() {
39 return AxisMin
40 }
41
42 return AxisNeutral
43}
44
45// AxisMouseDirection is the direction (X or Y) which the mouse is being tracked for.
46type AxisMouseDirection uint

Callers

nothing calls this directly

Calls 2

GetMethod · 0.80
DownMethod · 0.45

Tested by

no test coverage detected