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

Function NewKeyManager

keys.go:19–24  ·  view source on GitHub ↗

NewKeyManager creates a new KeyManager.

()

Source from the content-addressed store, hash-verified

17
18// NewKeyManager creates a new KeyManager.
19func NewKeyManager() *KeyManager {
20 return &KeyManager{
21 dirtmap: make(map[Key]Key),
22 mapper: make(map[Key]KeyState),
23 }
24}
25
26// KeyManager tracks which keys are pressed and released at the current point of time.
27type KeyManager struct {

Callers 8

NewInputManagerFunction · 0.85
TestKeyManagerFunction · 0.85

Calls

no outgoing calls