RegisterButton registers a new button input.
(name string, keys ...Key)
| 54 | |
| 55 | // RegisterButton registers a new button input. |
| 56 | func (im *InputManager) RegisterButton(name string, keys ...Key) { |
| 57 | im.buttons[name] = Button{ |
| 58 | Triggers: keys, |
| 59 | Name: name, |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // RegisterGamepad registers a new gamepad for use. It starts with joystick0 |
| 64 | // and continues until it finds one that can be used. If it does not find a |
no outgoing calls