struct

SF::Event::TouchEvent

Inherits SF::Event / Struct / Value / Object

Touch events parameters (see TouchBegan, TouchMoved, TouchEnded)

Constructors

Instance methods

dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
finger

Index of the finger in case of multi-touch events

Source
finger=(finger : Int)
Source
x

X position of the touch, relative to the left of the owner window

Source
x=(x : Int)
Source
y

Y position of the touch, relative to the top of the owner window

Source
y=(y : Int)
Source