| Package | com.alexomara.ane.AIRControl.controllers |
| Class | public class AIRControlController |
| Inheritance | AIRControlController flash.events.EventDispatcher |
This class is used for controllers objects which are created automatically and should not be instantiated manually.
See also
| Property | Defined By | ||
|---|---|---|---|
| axesTotal : uint [read-only]
The total axes on the controller. | AIRControlController | ||
| AXIS_R : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| AXIS_U : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| AXIS_V : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| AXIS_X : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| AXIS_Y : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| AXIS_Z : int [read-only]
The index of the axis with the specified letter or -1 if not available. | AIRControlController | ||
| buttonsTotal : uint [read-only]
The total buttons on the controller. | AIRControlController | ||
| ID : uint [read-only]
The unique identifier assigned to the controller. | AIRControlController | ||
| name : String [read-only]
The description of the controller. | AIRControlController | ||
| povsTotal : uint [read-only]
The total POV hat switches on the controller. | AIRControlController | ||
| productID : uint [read-only]
The unique identified of the product by the manufacturer of the controller. | AIRControlController | ||
| vendorID : uint [read-only]
The unique identified of the hardware manufacturer of the controller. | AIRControlController | ||
| Method | Defined By | ||
|---|---|---|---|
AIRControlController(ID:uint, axes:uint, povs:uint, buttons:uint, axesLetters:String, vendorID:uint, productID:uint, name:String)
Creates a new AIRControlController object. | AIRControlController | ||
axis(index:uint):AIRControlControllerAxis
Returns the axis at the specified index on the controller or null if out of bounds. | AIRControlController | ||
button(index:uint):AIRControlControllerButton
Returns the button at the specified index on the controller or null if out of bounds. | AIRControlController | ||
pov(index:uint):AIRControlControllerPOV
Returns the POV hat switch at the specified index on the controller or null if out of bounds. | AIRControlController | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched on axis state change. | AIRControlController | |||
| Dispatched on button state change. | AIRControlController | |||
| Dispatched on POV hat switch state change. | AIRControlController | |||
| axesTotal | property |
axesTotal:uint [read-only] The total axes on the controller.
public function get axesTotal():uintSee also
| AXIS_R | property |
AXIS_R:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_R():int| AXIS_U | property |
AXIS_U:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_U():int| AXIS_V | property |
AXIS_V:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_V():int| AXIS_X | property |
AXIS_X:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_X():int| AXIS_Y | property |
AXIS_Y:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_Y():int| AXIS_Z | property |
AXIS_Z:int [read-only] The index of the axis with the specified letter or -1 if not available.
This property is only accurate on Windows and does not always reflect the axis that should logically be used for this purpose.
public function get AXIS_Z():int| buttonsTotal | property |
buttonsTotal:uint [read-only] The total buttons on the controller.
public function get buttonsTotal():uintSee also
| ID | property |
ID:uint [read-only] The unique identifier assigned to the controller.
This identifier is only necessarily unique among currently attached controllers. It cannot be used to reliably match a controller after it has been detached. This value has no direct relation to the controller index.
public function get ID():uint| name | property |
name:String [read-only] The description of the controller.
public function get name():String| povsTotal | property |
povsTotal:uint [read-only] The total POV hat switches on the controller.
public function get povsTotal():uintSee also
| productID | property |
productID:uint [read-only] The unique identified of the product by the manufacturer of the controller.
This identifier can be used to determine the product by the manufacturer of the controller.
This property can be used in conjunction with ventorID to match a compatile controller after detach and attach.
public function get productID():uintSee also
| vendorID | property |
vendorID:uint [read-only] The unique identified of the hardware manufacturer of the controller.
This identifier can be used to determine the manufacturer of the controller.
This property can be used in conjunction with productID to match a compatile controller after detach and attach.
public function get vendorID():uintSee also
| AIRControlController | () | Constructor |
public function AIRControlController(ID:uint, axes:uint, povs:uint, buttons:uint, axesLetters:String, vendorID:uint, productID:uint, name:String)Creates a new AIRControlController object.
ParametersID:uint — The unique identifier assigned to the controller.
| |
axes:uint — The total number of axes on the controller.
| |
povs:uint — The total number of POV hat switches on the controller.
| |
buttons:uint — The total number of buttons on the controller.
| |
axesLetters:String — The axes letters in the order they appear on the controller.
| |
vendorID:uint — The unique identified of the hardware manufacturer of the controller.
| |
productID:uint — The unique identified of the product by the manufacturer of the controller.
| |
name:String — The description of the controller.
|
| axis | () | method |
public function axis(index:uint):AIRControlControllerAxisReturns the axis at the specified index on the controller or null if out of bounds.
Parameters
index:uint — The index of the axis element.
|
AIRControlControllerAxis — The axis at the specified index or null.
|
See also
| button | () | method |
public function button(index:uint):AIRControlControllerButtonReturns the button at the specified index on the controller or null if out of bounds.
Parameters
index:uint — The index of the button element.
|
AIRControlControllerButton — The button at the specified index or null.
|
See also
| pov | () | method |
public function pov(index:uint):AIRControlControllerPOVReturns the POV hat switch at the specified index on the controller or null if out of bounds.
Parameters
index:uint — The index of the POV hat switch element.
|
AIRControlControllerPOV — The POV hat switch at the specified index or null.
|
See also
| AIRControlControllerEvent.axisChange | Event |
com.alexomara.ane.AIRControl.events.AIRControlControllerEventcom.alexomara.ane.AIRControl.events.AIRControlControllerEventDispatched on axis state change.
| AIRControlControllerEvent.buttonChange | Event |
com.alexomara.ane.AIRControl.events.AIRControlControllerEventcom.alexomara.ane.AIRControl.events.AIRControlControllerEventDispatched on button state change.
| AIRControlControllerEvent.povChange | Event |
com.alexomara.ane.AIRControl.events.AIRControlControllerEventcom.alexomara.ane.AIRControl.events.AIRControlControllerEventDispatched on POV hat switch state change.