控制器#

初始化控制器类#

The controller constructor creates a controller object.

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

远程控制代码已启用#

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.

Controller 类带有两个预定义属性:

  • Axis - 允许您检测控制器操纵杆的运动并为轴事件分配功能。

  • Button - 允许您检测按钮按下并为控制器上的按钮事件分配功能。

属性