Package | cc.cote.jmulator |
Class | public class EmulatorEvent |
Inheritance | EmulatorEvent ![]() |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs an EmulatorEvent object. | EmulatorEvent | ||
toString():String [override]
Utility function overriding the default toString() function to include
specific properties such as 'status' and 'input'. | EmulatorEvent |
input | property |
public var input:String
A string that specifies which input triggered the event. This is useful, for example, when using the INPUT_ANY event to differentiate which input actually was the trigger. In any other cases, it is the same as the event type.
status | property |
public var status:Boolean
A boolean that specifies if the input was activated (true) or deactivated (false)
EmulatorEvent | () | Constructor |
public function EmulatorEvent(type:String, status:Boolean, input:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructs an EmulatorEvent object.
Parameterstype:String — The type of the event. Usually matches the name of the
board input label
| |
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 board label name of the input that triggered the
event. This is the same as the 'type' unless you are using the
INPUT_ANY 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.
|
toString | () | method |
override public function toString():String
Utility function overriding the default toString() function to include specific properties such as 'status' and 'input'.
ReturnsString — A string representation of the event
|