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

Struct MouseSystem

common/mouse.go:122–130  ·  view source on GitHub ↗

MouseSystem listens for mouse events, and changes value for MouseComponent accordingly

Source from the content-addressed store, hash-verified

120
121// MouseSystem listens for mouse events, and changes value for MouseComponent accordingly
122type MouseSystem struct {
123 entities []mouseEntity
124 world *ecs.World
125 camera *CameraSystem
126
127 mouseX float32
128 mouseY float32
129 mouseDown bool
130}
131
132// Priority returns a priority higher than most, to ensure that this System runs before all others
133func (m *MouseSystem) Priority() int { return MouseSystemPriority }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected