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

Method BindKeyboard

common/camera.go:346–353  ·  view source on GitHub ↗

BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller.

(hori, vert string)

Source from the content-addressed store, hash-verified

344
345// BindKeyboard sets the vertical and horizontal axes used by the KeyboardScroller.
346func (c *KeyboardScroller) BindKeyboard(hori, vert string) {
347 c.keysMu.Lock()
348
349 c.verticalAxis = vert
350 c.horizontalAxis = hori
351
352 defer c.keysMu.Unlock()
353}
354
355// NewKeyboardScroller creates a new KeyboardScroller system using the provided scrollSpeed,
356// and horizontal and vertical axes.

Callers 1

NewKeyboardScrollerFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected