Packagecom.alexomara.ane.AIRControl.controllers
Classpublic class AIRControlController
InheritanceAIRControlController Inheritance flash.events.EventDispatcher

The class for AIRControl controllers.

This class is used for controllers objects which are created automatically and should not be instantiated manually.

See also

com.alexomara.ane.AIRControl.AIRControl


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
AIRControlController(ID:uint, axes:uint, povs:uint, buttons:uint, axesLetters:String, vendorID:uint, productID:uint, name:String)
Creates a new AIRControlController object.
AIRControlController
  
Returns the axis at the specified index on the controller or null if out of bounds.
AIRControlController
  
Returns the button at the specified index on the controller or null if out of bounds.
AIRControlController
  
Returns the POV hat switch at the specified index on the controller or null if out of bounds.
AIRControlController
Events
 Event Summary Defined By
  Dispatched on axis state change.AIRControlController
  Dispatched on button state change.AIRControlController
  Dispatched on POV hat switch state change.AIRControlController
Property Detail
axesTotalproperty
axesTotal:uint  [read-only]

The total axes on the controller.


Implementation
    public function get axesTotal():uint

See also

AXIS_Rproperty 
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.


Implementation
    public function get AXIS_R():int
AXIS_Uproperty 
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.


Implementation
    public function get AXIS_U():int
AXIS_Vproperty 
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.


Implementation
    public function get AXIS_V():int
AXIS_Xproperty 
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.


Implementation
    public function get AXIS_X():int
AXIS_Yproperty 
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.


Implementation
    public function get AXIS_Y():int
AXIS_Zproperty 
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.


Implementation
    public function get AXIS_Z():int
buttonsTotalproperty 
buttonsTotal:uint  [read-only]

The total buttons on the controller.


Implementation
    public function get buttonsTotal():uint

See also

IDproperty 
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.


Implementation
    public function get ID():uint
nameproperty 
name:String  [read-only]

The description of the controller.


Implementation
    public function get name():String
povsTotalproperty 
povsTotal:uint  [read-only]

The total POV hat switches on the controller.


Implementation
    public function get povsTotal():uint

See also

productIDproperty 
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.


Implementation
    public function get productID():uint

See also

vendorIDproperty 
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.


Implementation
    public function get vendorID():uint

See also

Constructor Detail
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.

Parameters
ID: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.
Method Detail
axis()method
public function axis(index:uint):AIRControlControllerAxis

Returns the axis at the specified index on the controller or null if out of bounds.

Parameters

index:uint — The index of the axis element.

Returns
AIRControlControllerAxis — The axis at the specified index or null.

See also

button()method 
public function button(index:uint):AIRControlControllerButton

Returns the button at the specified index on the controller or null if out of bounds.

Parameters

index:uint — The index of the button element.

Returns
AIRControlControllerButton — The button at the specified index or null.

See also

pov()method 
public function pov(index:uint):AIRControlControllerPOV

Returns 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.

Returns
AIRControlControllerPOV — The POV hat switch at the specified index or null.

See also

Event Detail
AIRControlControllerEvent.axisChange Event
Event Object Type: com.alexomara.ane.AIRControl.events.AIRControlControllerEvent
AIRControlControllerEvent.type property = com.alexomara.ane.AIRControl.events.AIRControlControllerEvent

Dispatched on axis state change.

AIRControlControllerEvent.buttonChange Event  
Event Object Type: com.alexomara.ane.AIRControl.events.AIRControlControllerEvent
AIRControlControllerEvent.type property = com.alexomara.ane.AIRControl.events.AIRControlControllerEvent

Dispatched on button state change.

AIRControlControllerEvent.povChange Event  
Event Object Type: com.alexomara.ane.AIRControl.events.AIRControlControllerEvent
AIRControlControllerEvent.type property = com.alexomara.ane.AIRControl.events.AIRControlControllerEvent

Dispatched on POV hat switch state change.