RegisterGamepad registers a new gamepad for use. It starts with joystick0 and continues until it finds one that can be used. If it does not find a suitable gamepad, an error will be returned.
(name string)
| 64 | // and continues until it finds one that can be used. If it does not find a |
| 65 | // suitable gamepad, an error will be returned. |
| 66 | func (im *InputManager) RegisterGamepad(name string) error { |
| 67 | return im.gamepads.Register(name) |
| 68 | } |
| 69 | |
| 70 | // Axis retrieves an Axis with a specified name. |
| 71 | func (im *InputManager) Axis(name string) Axis { |