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

Method RegisterButton

input.go:56–61  ·  view source on GitHub ↗

RegisterButton registers a new button input.

(name string, keys ...Key)

Source from the content-addressed store, hash-verified

54
55// RegisterButton registers a new button input.
56func (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

Callers 12

RunFunction · 0.80
TestButtonSimpleFunction · 0.80
TestButtonComplexFunction · 0.80
PreloadMethod · 0.80
PreloadMethod · 0.80
PreloadMethod · 0.80
PreloadMethod · 0.80
PreloadMethod · 0.80
SetupMethod · 0.80
SetupMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestButtonSimpleFunction · 0.64
TestButtonComplexFunction · 0.64