AxisMouse is an axis for a single x or y component of the Mouse. The value returned from it is the delta movement, since the previous call and it is not constrained by the AxisMin and AxisMax values.
| 55 | // AxisMouse is an axis for a single x or y component of the Mouse. The value returned from it is |
| 56 | // the delta movement, since the previous call and it is not constrained by the AxisMin and AxisMax values. |
| 57 | type AxisMouse struct { |
| 58 | // direction is the value storing either AxisMouseVert and AxisMouseHori. It determines which directional |
| 59 | // component to operate on. |
| 60 | direction AxisMouseDirection |
| 61 | // old is the delta from the previous calling of Value. |
| 62 | old float32 |
| 63 | } |
| 64 | |
| 65 | // NewAxisMouse creates a new Mouse Axis in either direction AxisMouseVert or AxisMouseHori. |
| 66 | func NewAxisMouse(d AxisMouseDirection) *AxisMouse { |
nothing calls this directly
no outgoing calls
no test coverage detected