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

Method RegisterAxis

input.go:48–53  ·  view source on GitHub ↗

RegisterAxis registers a new axis which can be used to retrieve inputs which are spectrums.

(name string, pairs ...AxisPair)

Source from the content-addressed store, hash-verified

46
47// RegisterAxis registers a new axis which can be used to retrieve inputs which are spectrums.
48func (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.
56func (im *InputManager) RegisterButton(name string, keys ...Key) {

Callers 10

RunFunction · 0.80
TestAxisSimpleFunction · 0.80
TestAxisComplexFunction · 0.80
TestAxisMouseFunction · 0.80
SetupMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestAxisSimpleFunction · 0.64
TestAxisComplexFunction · 0.64
TestAxisMouseFunction · 0.64