-
Notifications
You must be signed in to change notification settings - Fork 0
InputEvent
Namespace: Electron2D
Base class for Electron2D input events delivered to Electron2D.Node._Input(Electron2D.InputEvent).
public class Electron2D.InputEvent : Electron2D.ResourceThis class is an event resource and does not represent a concrete device action by itself. Concrete keyboard and mouse events derive from it.
Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.
Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.
This class is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventKeyElectron2D.InputEventMouseButtonElectron2D.InputEventMouseMotion
| Member | Kind | Summary |
|---|---|---|
Device |
Property | Gets or sets the device index that produced this event. |
Electron2D.InputEvent() |
Constructor | Initializes a new instance of the InputEvent type. |
Kind: Property
public System.Int32 Device { get; set; }Gets or sets the device index that produced this event.
Platform device identifiers are copied into this value by the internal input mapper. The value is informational in 0.1.0 Preview and can be used by future device-specific action bindings.
The current device value.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEvent
Kind: Constructor
public Electron2D.InputEvent()Initializes a new instance of the InputEvent type.
The new instance follows the lifetime and validation rules of its declaring type.
This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.
This API is available since Electron2D 0.1.0 Preview.
Electron2D.InputEvent
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.