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.
| 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. |
| 4 | type 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. |
| 12 | func (a Axis) Value() float32 { |
nothing calls this directly
no outgoing calls
no test coverage detected