reckfellENGINE

InputEventScreenTouch

Represents a screen touch event.

On this page
class InputEventScreenTouchReckfellSharpInherits InputEventFromWindow

Represents a screen touch event.

Stores information about multi-touch press/release input events. Supports touch press, touch release and InputEventScreenTouch.Index for multi-touch count and order.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

InputEventScreenTouchConstructor
# InputEventScreenTouch
C#
public InputEventScreenTouch();

Properties6

CanceledProperty
# Canceled
C#
public bool Canceled { get; set; }

If true, the touch event has been canceled.

DoubleTapProperty
# DoubleTap
C#
public bool DoubleTap { get; set; }

If true, the touch's state is a double tap.

IndexProperty
# Index
C#
public int Index { get; set; }

The touch index in the case of a multi-touch event. One index = one finger.

LongPressProperty
# LongPress
C#
public bool LongPress { get; set; }

If true, the touch's state is a long press. Note: This is only supported on Android and iOS.

PositionProperty
# Position
C#
public Vector2 Position { get; set; }

The touch position in the viewport the node is in, using the coordinate system of this viewport.

PressedProperty
# Pressed
C#
public bool Pressed { get; set; }

If true, the touch's state is pressed. If false, the touch's state is released.

Methods10

GetIndexint
# GetIndex
C#
public int GetIndex();
Returns int
GetPositionVector2
# GetPosition
C#
public Vector2 GetPosition();
Returns Vector2
IsDoubleTapbool
# IsDoubleTap
C#
public bool IsDoubleTap();
Returns bool
IsLongPressbool
# IsLongPress
C#
public bool IsLongPress();
Returns bool
SetCanceledvoid
# SetCanceled
C#
public void SetCanceled(bool canceled);
Parameters
NameTypeDefault
canceledbool—
SetDoubleTapvoid
# SetDoubleTap
C#
public void SetDoubleTap(bool doubleTap);
Parameters
NameTypeDefault
doubleTapbool—
SetIndexvoid
# SetIndex
C#
public void SetIndex(int index);
Parameters
NameTypeDefault
indexint—
SetLongPressvoid
# SetLongPress
C#
public void SetLongPress(bool longPress);
Parameters
NameTypeDefault
longPressbool—
SetPositionvoid
# SetPosition
C#
public void SetPosition(Vector2 position);
Parameters
NameTypeDefault
positionVector2—
SetPressedvoid
# SetPressed
C#
public void SetPressed(bool pressed);
Parameters
NameTypeDefault
pressedbool—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.