-
Notifications
You must be signed in to change notification settings - Fork 0
InputEventScreenDrag
Namespace: Electron2D
Represents a screen touch drag event.
public class Electron2D.InputEventScreenDrag : Electron2D.InputEventFromWindowDrag events carry the current pointer position, motion delta and pressure. Velocity values remain zero until frame timing is connected to touch input dispatch.
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.InputEventScreenTouch
| Member | Kind | Summary |
|---|---|---|
Index |
Property | Gets or sets the touch index. |
PenInverted |
Property | Gets or sets whether the eraser end of a stylus pen is active. |
Position |
Property | Gets or sets the current drag position. |
Pressure |
Property | Gets or sets the pen pressure. |
Relative |
Property | Gets or sets the drag delta in viewport coordinates. |
ScreenRelative |
Property | Gets or sets the unscaled drag delta in screen coordinates. |
ScreenVelocity |
Property | Gets or sets the unscaled drag velocity in screen coordinates. |
Tilt |
Property | Gets or sets the pen tilt. |
Velocity |
Property | Gets or sets the drag velocity in viewport coordinates. |
Electron2D.InputEventScreenDrag() |
Constructor | Initializes a new instance of the InputEventScreenDrag type. |
Kind: Property
public System.Int32 Index { get; set; }Gets or sets the touch index.
One index represents one finger within the active multitouch sequence.
The current index value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public System.Boolean PenInverted { get; set; }Gets or sets whether the eraser end of a stylus pen is active.
This property follows the validation and lifetime rules of its declaring type.
The current pen inverted value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 Position { get; set; }Gets or sets the current drag position.
This property follows the validation and lifetime rules of its declaring type.
The current position value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public System.Single Pressure { get; set; }Gets or sets the pen pressure.
Values are clamped to the range 0.0 through 1.0. Non-finite
values are treated as 0.0.
The current pressure value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 Relative { get; set; }Gets or sets the drag delta in viewport coordinates.
This property follows the validation and lifetime rules of its declaring type.
The current relative value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 ScreenRelative { get; set; }Gets or sets the unscaled drag delta in screen coordinates.
This property follows the validation and lifetime rules of its declaring type.
The current screen relative value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 ScreenVelocity { get; set; }Gets or sets the unscaled drag velocity in screen coordinates.
This property follows the validation and lifetime rules of its declaring type.
The current screen velocity value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 Tilt { get; set; }Gets or sets the pen tilt.
This property follows the validation and lifetime rules of its declaring type.
The current tilt value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Property
public Electron2D.Vector2 Velocity { get; set; }Gets or sets the drag velocity in viewport coordinates.
This property follows the validation and lifetime rules of its declaring type.
The current velocity value.
This property is not synchronized.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.InputEventScreenDrag
Kind: Constructor
public Electron2D.InputEventScreenDrag()Initializes a new instance of the InputEventScreenDrag 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.InputEventScreenDrag
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.