Packagecc.cote.jmulator.events
Classpublic class EmulatorEvent
InheritanceEmulatorEvent Inheritance flash.events.Event
Subclasses Ipac2Event, Ipac4Event, IpacVeEvent

An EmulatorEvent object is dispatched whenever the status of an input on a physical board changes. Usually, this class is extended by board-specific classes. Therefore, this class is more of an abstract class.



Public Properties
 PropertyDefined By
  input : String
A string that specifies which input triggered the event.
EmulatorEvent
  status : Boolean
A boolean that specifies if the input was activated (true) or deactivated (false)
EmulatorEvent
Public Methods
 MethodDefined By
  
EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs an EmulatorEvent object.
EmulatorEvent
  
toString():String
[override] Returns a string representation of the event and associated properties.
EmulatorEvent
Property Detail
inputproperty
public var input:String

A string that specifies which input triggered the event. This is useful, for example, when using the ANY_INPUT event to know which input actually was the trigger. This property is also useful because it represents the board input as it is labeled (in lowercase and without the 'input_' prefix).

statusproperty 
public var status:Boolean

A boolean that specifies if the input was activated (true) or deactivated (false)

Constructor Detail
EmulatorEvent()Constructor
public function EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructs an EmulatorEvent object.

Parameters
type:String — The type of the event. It's usually the name of the board label (lowercase) prepended with 'input_'.
 
status:Boolean — The boolean status of the event. True means the input was activated (on) and false means the input was deactivated (off).
 
input:String — The exact board label name of the input that triggered the event.
 
bubbles:Boolean (default = false) — Indicates whether an event is a bubbling event.
 
cancelable:Boolean (default = false) — Indicates whether the behavior associated with the event can be prevented.
Method Detail
toString()method
override public function toString():String

Returns a string representation of the event and associated properties. This is mostly useful for debugging.

Returns
String