API Reference

Class List

GamePadButton

A GamePadButton stores information about a button from the Gamepad API.

Summary

Properties

pressed

Whether the button is currently down.

touched

Whether the button is currently touched.

value

The value for the button between 0 and 1, with 0 representing a button that is not pressed, and 1 representing a button that is fully pressed.

wasPressed

Whether the button was pressed.

wasReleased

Whether the button was released since the last update.

wasTouched

Whether the button was touched since the last update.

Details

Properties

booleanpressed

Whether the button is currently down.

booleantouched

Whether the button is currently touched.

numbervalue

The value for the button between 0 and 1, with 0 representing a button that is not pressed, and 1 representing a button that is fully pressed.

booleanwasPressed

Whether the button was pressed.

booleanwasReleased

Whether the button was released since the last update.

booleanwasTouched

Whether the button was touched since the last update.