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

Struct AxisMouse

axis.go:57–63  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
57type 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.
66func NewAxisMouse(d AxisMouseDirection) *AxisMouse {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected