controlador#

Inicialización de la clase controlador#

The controller constructor creates a controller object.

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

Código de control remoto habilitado#

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.

La clase Controlador viene con dos atributos predefinidos:

  • Axis - Permite detectar movimientos en los joysticks del controlador y asignar funciones a eventos de ejes.

  • Button - Le permite detectar pulsaciones de botones y asignar funciones a eventos de botones en el controlador.

Atributos