NewInputManager holds onto anything input related for engo
()
| 11 | |
| 12 | // NewInputManager holds onto anything input related for engo |
| 13 | func 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. |
| 24 | type InputManager struct { |