AIRControl - Adobe AIR Game Controller Native Extension - API Documentation | All Packages | All Classes | Index | Frames No Frames |
AIRControlEvent

Package | com.alexomara.ane.AIRControl.events
Class | public class AIRControlEvent
Inheritance | AIRControlEvent flash.events.Event

The event class for all events dispatched by the main AIRControl class.

Public Properties

| Property | Defined By
--- | --- | ---
|  | controller : AIRControlController [read-only] The controller that dispatched the event. | AIRControlEvent
|  | controllerIndex : uint [read-only] The index of the controller that dispatched the event. | AIRControlEvent

Public Methods

| Method | Defined By
--- | --- | ---
|  | AIRControlEvent(type:String, controller:AIRControlController, controllerIndex:uint) Creates a new AIRControlEvent object. | AIRControlEvent
|  | clone():Event [override] Creates a new AIRControlEvent object with all the original properties. | AIRControlEvent

Public Constants

| Constant | Defined By
--- | --- | ---
|  | CONTROLLER_ATTACH : String = AIRControlEvent.controllerAttach [static] Dispatched on controller attach. | AIRControlEvent
|  | CONTROLLER_DETACH : String = AIRControlEvent.controllerDetach [static] Dispatched on controller detach. | AIRControlEvent

Property Detail

controller | property

`controller:AIRControlController` [read-only]

The controller that dispatched the event.

Implementation
`public function get controller():AIRControlController`

controllerIndex | property |

`controllerIndex:uint` [read-only]

The index of the controller that dispatched the event.

Implementation
`public function get controllerIndex():uint`
Constructor Detail

AIRControlEvent | () | Constructor

`public function AIRControlEvent(type:String, controller:AIRControlController, controllerIndex:uint)`

Creates a new AIRControlEvent object.

Parameters

| `type:String` — The type of event being dispatched.
| `controller:AIRControlController` — The controller that dispatched the event.
| `controllerIndex:uint` — The index of the controller that dispatched the event.

Method Detail

clone | () | method

`override public function clone():Event`

Creates a new AIRControlEvent object with all the original properties.

Returns

| `Event` — An exact duplicate of the current event.

Constant Detail

CONTROLLER_ATTACH | Constant

`public static const CONTROLLER_ATTACH:String = AIRControlEvent.controllerAttach`

Dispatched on controller attach.

CONTROLLER_DETACH | Constant |

`public static const CONTROLLER_DETACH:String = AIRControlEvent.controllerDetach`

Dispatched on controller detach.

Mon Jul 22 2013, 09:56 PM -04:00