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

Struct Axis

axis.go:4–9  ·  view source on GitHub ↗

An Axis is an input which is a spectrum of values. An example of this is the horizontal movement in a game, or how far a joystick is pressed.

Source from the content-addressed store, hash-verified

2
3// An Axis is an input which is a spectrum of values. An example of this is the horizontal movement in a game, or how far a joystick is pressed.
4type Axis struct {
5 // Name represents the name of the axis (Horizontal, Vertical)
6 Name string
7 // Pairs represents the axis pairs of this acis
8 Pairs []AxisPair
9}
10
11// Value returns the value of an Axis.
12func (a Axis) Value() float32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected