Value returns the value of a keypress.
()
| 33 | |
| 34 | // Value returns the value of a keypress. |
| 35 | func (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. |
| 46 | type AxisMouseDirection uint |