-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventScreenTouch
Namespace: Electron2D
Represents a screen touch press, release or cancel event.
public class Electron2D.InputEventScreenTouch : Electron2D.InputEventFromWindowThis event stores one pointer in a multitouch sequence. The
Electron2D.InputEventScreenTouch.Index value identifies the finger within the active touch
device, and Electron2D.InputEventScreenTouch.Position stores the current viewport position.
Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.
This class is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
| Member | Kind | Summary |
|---|---|---|
Canceled |
Property | Gets or sets whether the platform canceled this touch. |
DoubleTap |
Property | Gets or sets whether this touch represents a double tap. |
Index |
Property | Gets or sets the touch index. |
Position |
Property | Gets or sets the touch position. |
Pressed |
Property | Gets or sets whether this event presses the touch. |
Electron2D.InputEventScreenTouch() |
Constructor | Initializes a new instance of the InputEventScreenTouch type. |
Kind: Property
public System.Boolean Canceled { get; set; }Gets or sets whether the platform canceled this touch.
Canceled events are delivered as released touches with
Electron2D.InputEventScreenTouch.Pressed set to false.
The current canceled value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenTouch
Kind: Property
public System.Boolean DoubleTap { get; set; }Gets or sets whether this touch represents a double tap.
The 0.1.0 Preview platform mapper leaves this value false until a
platform backend reports double-tap semantics.
The current double tap value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenTouch
Kind: Property
public System.Int32 Index { get; set; }Gets or sets the touch index.
One index represents one finger within the active multitouch sequence.
Platform finger ids that do not fit into System.Int32 are ignored by
the input mapper.
The current index value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenTouch
Kind: Property
public Electron2D.Vector2 Position { get; set; }Gets or sets the touch position.
The 0.1.0 Preview input mapper stores the platform-provided touch coordinates directly. Future viewport scaling work can transform this value before dispatch.
The current position value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenTouch
Kind: Property
public System.Boolean Pressed { get; set; }Gets or sets whether this event presses the touch.
A value of false represents release or cancel, depending on
Electron2D.InputEventScreenTouch.Canceled.
The current pressed value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenTouch
Kind: Constructor
public Electron2D.InputEventScreenTouch()Initializes a new instance of the InputEventScreenTouch 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.InputEventScreenTouch
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.