Skip to content

InputEventScreenTouch

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

InputEventScreenTouch

Back to API Reference

Namespace: Electron2D

Summary

Represents a screen touch press, release or cancel event.

Declaration

public class Electron2D.InputEventScreenTouch : Electron2D.InputEventFromWindow

Remarks

This 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.

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.InputEventScreenDrag

Members

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.

Member Details

Canceled

Kind: Property

public System.Boolean Canceled { get; set; }

Summary

Gets or sets whether the platform canceled this touch.

Remarks

Canceled events are delivered as released touches with Electron2D.InputEventScreenTouch.Pressed set to false.

Value

The current canceled value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenTouch

DoubleTap

Kind: Property

public System.Boolean DoubleTap { get; set; }

Summary

Gets or sets whether this touch represents a double tap.

Remarks

The 0.1.0 Preview platform mapper leaves this value false until a platform backend reports double-tap semantics.

Value

The current double tap value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenTouch

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. Platform finger ids that do not fit into System.Int32 are ignored by the input mapper.

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.InputEventScreenTouch

Position

Kind: Property

public Electron2D.Vector2 Position { get; set; }

Summary

Gets or sets the touch position.

Remarks

The 0.1.0 Preview input mapper stores the platform-provided touch coordinates directly. Future viewport scaling work can transform this value before dispatch.

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.InputEventScreenTouch

Pressed

Kind: Property

public System.Boolean Pressed { get; set; }

Summary

Gets or sets whether this event presses the touch.

Remarks

A value of false represents release or cancel, depending on Electron2D.InputEventScreenTouch.Canceled.

Value

The current pressed value.

Thread Safety

This property is not synchronized.

Since

This property is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.InputEventScreenTouch

Electron2D.InputEventScreenTouch()

Kind: Constructor

public Electron2D.InputEventScreenTouch()

Summary

Initializes a new instance of the InputEventScreenTouch 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.InputEventScreenTouch

Clone this wiki locally