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

Method RegisterGamepad

input.go:66–68  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
66func (im *InputManager) RegisterGamepad(name string) error {
67 return im.gamepads.Register(name)
68}
69
70// Axis retrieves an Axis with a specified name.
71func (im *InputManager) Axis(name string) Axis {

Callers 1

PreloadMethod · 0.80

Calls 1

RegisterMethod · 0.45

Tested by

no test coverage detected