controller#

Initializing the Controller Class#

The controller constructor creates a controller object.

// Create a new object "Controller" with the Controller class.
controller Controller = controller();

RemoteControlCodeEnabled#

RemoteControlCodeEnabled is a variable that can be set to a boolean that enables or disables Controller configured actions from the Devices menu. The Controller is enabled by default. It can be set to either of the following:

  • true — Enable Controller configured actions.

  • false — Disable Controller configured actions.

Usage: RemoteControlCodeEnabled = false

// Example coming soon!

This Controller object will be used in all subsequent examples throughout this API documentation when referring to controller class methods and attributes.

The Controller class comes with two pre-defined attributes:

  • Axis - Allows you to detect movements in the Controller’s joysticks and assign functions to axes events.

  • Button - Allows you to detect button presses and assign functions to button events on the Controller.

Attributes