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

Struct KeyboardScroller

common/camera.go:318–322  ·  view source on GitHub ↗

KeyboardScroller is a System that allows for scrolling when certain keys are pressed.

Source from the content-addressed store, hash-verified

316
317// KeyboardScroller is a System that allows for scrolling when certain keys are pressed.
318type KeyboardScroller struct {
319 ScrollSpeed float32
320 horizontalAxis, verticalAxis string
321 keysMu sync.RWMutex
322}
323
324// Priority implememts the ecs.Prioritizer interface.
325func (*KeyboardScroller) Priority() int { return KeyboardScrollerPriority }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected