RegisterAxis registers a new axis which can be used to retrieve inputs which are spectrums.
(name string, pairs ...AxisPair)
| 46 | |
| 47 | // RegisterAxis registers a new axis which can be used to retrieve inputs which are spectrums. |
| 48 | func (im *InputManager) RegisterAxis(name string, pairs ...AxisPair) { |
| 49 | im.axes[name] = Axis{ |
| 50 | Name: name, |
| 51 | Pairs: pairs, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // RegisterButton registers a new button input. |
| 56 | func (im *InputManager) RegisterButton(name string, keys ...Key) { |
no outgoing calls