Gamepad

altspace~ Gamepad

new Gamepad()

Represents a gamepad. Can be retrived via altspace.getGamepads. See the official Gamepad spec for more details.

Methods

preventDefault(axes, buttons)

Prevents default actions on specific axes and buttons.

Parameters:
Name Type Description
axes Array

An array of booleans, arranged according to the axis order of the layout. A true value for a given location will block the default action for that axis.

buttons Array

An array of booleans, arranged according to the button order of the layout. A true value for a given location will block the default action for that button.