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

Function NewInputManager

input.go:13–21  ·  view source on GitHub ↗

NewInputManager holds onto anything input related for engo

()

Source from the content-addressed store, hash-verified

11
12// NewInputManager holds onto anything input related for engo
13func NewInputManager() *InputManager {
14 return &InputManager{
15 Touches: make(map[int]Point),
16 axes: make(map[string]Axis),
17 buttons: make(map[string]Button),
18 keys: NewKeyManager(),
19 gamepads: NewGamepadManager(),
20 }
21}
22
23// InputManager contains information about all forms of input.
24type InputManager struct {

Callers 10

RunFunction · 0.85
TestAxisSimpleFunction · 0.85
TestAxisComplexFunction · 0.85
TestAxisMouseFunction · 0.85
TestButtonSimpleFunction · 0.85
TestButtonComplexFunction · 0.85

Calls 2

NewKeyManagerFunction · 0.85
NewGamepadManagerFunction · 0.85

Tested by 9

TestAxisSimpleFunction · 0.68
TestAxisComplexFunction · 0.68
TestAxisMouseFunction · 0.68
TestButtonSimpleFunction · 0.68
TestButtonComplexFunction · 0.68