Skip to content

InputEventScreenDrag

Eduard Gushchin edited this page Jun 24, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.InputEventScreenDrag
Namespace Electron2D
Kind class
Category Input

Overview

Represents a screen touch drag event.

Syntax

public class Electron2D.InputEventScreenDrag : Electron2D.InputEventFromWindow

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: InputEventScreenDrag

Multitouch drag event with index, position, relative motion, pressure, tilt and pen inversion fields.

Remarks

Drag events carry the current pointer position, motion delta and pressure. Velocity values remain zero until frame timing is connected to touch input dispatch.

Thread Safety

Instances are mutable and are not synchronized; use them from the input dispatch thread that owns the event.

Since

This class is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenTouch

Members

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.

Member Details

Index

Kind: Property

public System.Int32 Index { get; set; }

Summary

Gets or sets the touch index.

Remarks

One index represents one finger within the active multitouch sequence.

Value

The current index value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

PenInverted

Kind: Property

public System.Boolean PenInverted { get; set; }

Summary

Gets or sets whether the eraser end of a stylus pen is active.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current pen inverted value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Position

Kind: Property

public Electron2D.Vector2 Position { get; set; }

Summary

Gets or sets the current drag position.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current position value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Pressure

Kind: Property

public System.Single Pressure { get; set; }

Summary

Gets or sets the pen pressure.

Remarks

Values are clamped to the range 0.0 through 1.0. Non-finite values are treated as 0.0.

Value

The current pressure value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Relative

Kind: Property

public Electron2D.Vector2 Relative { get; set; }

Summary

Gets or sets the drag delta in viewport coordinates.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current relative value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

ScreenRelative

Kind: Property

public Electron2D.Vector2 ScreenRelative { get; set; }

Summary

Gets or sets the unscaled drag delta in screen coordinates.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current screen relative value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

ScreenVelocity

Kind: Property

public Electron2D.Vector2 ScreenVelocity { get; set; }

Summary

Gets or sets the unscaled drag velocity in screen coordinates.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current screen velocity value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Tilt

Kind: Property

public Electron2D.Vector2 Tilt { get; set; }

Summary

Gets or sets the pen tilt.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current tilt value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Velocity

Kind: Property

public Electron2D.Vector2 Velocity { get; set; }

Summary

Gets or sets the drag velocity in viewport coordinates.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current velocity value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Electron2D.InputEventScreenDrag()

Kind: Constructor

public Electron2D.InputEventScreenDrag()

Summary

Initializes a new instance of the InputEventScreenDrag type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenDrag

Clone this wiki locally