MCPcopy Index your code
hub / github.com/EngoEngine/engo / NewKeyboardScroller

Function NewKeyboardScroller

common/camera.go:357–365  ·  view source on GitHub ↗

NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed, and horizontal and vertical axes.

(scrollSpeed float32, hori, vert string)

Source from the content-addressed store, hash-verified

355// NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed,
356// and horizontal and vertical axes.
357func NewKeyboardScroller(scrollSpeed float32, hori, vert string) *KeyboardScroller {
358 kbs := &KeyboardScroller{
359 ScrollSpeed: scrollSpeed,
360 }
361
362 kbs.BindKeyboard(hori, vert)
363
364 return kbs
365}
366
367// EntityScroller scrolls the camera to the position of a entity using its space component.
368type EntityScroller struct {

Callers 5

SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92
SetupMethod · 0.92

Calls 1

BindKeyboardMethod · 0.95

Tested by

no test coverage detected