Package | cc.cote.jmulator.events |
Class | public class EmulatorEvent |
Inheritance | EmulatorEvent ![]() |
Subclasses | Ipac2Event, Ipac4Event, IpacVeEvent |
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]
Returns a string representation of the event and associated properties. | EmulatorEvent |
input | property |
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).
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. 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.
|
toString | () | method |
override public function toString():String
Returns a string representation of the event and associated properties. This is mostly useful for debugging.
ReturnsString |