Skip to content

abstract struct SF::Event::TouchEvent
inherits SF::Event #

Touch events parameters (see TouchBegan, TouchMoved, TouchEnded)

Direct known subclasses

SF::Event::TouchBegan SF::Event::TouchEnded SF::Event::TouchMoved

Constructors#

Methods#

#dup : TouchEvent#

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.

View source

#finger : UInt32#

Index of the finger in case of multi-touch events

View source

#finger=(finger : Int)#

View source

#x : Int32#

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

View source

#x=(x : Int)#

View source

#y : Int32#

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

View source

#y=(y : Int)#

View source