Clutter.TouchEvent

Fields

Name

Type

Access

Description

axes

float

r/w

reserved

device

Clutter.InputDevice

r/w

the device that originated the event. If you want the physical device the event originated from, use Clutter.Event.get_source_device()

flags

Clutter.EventFlags

r/w

event flags

modifier_state

Clutter.ModifierType

r/w

a bit-mask representing the state of modifier keys (e.g. Control, Shift, and Alt) and the pointer buttons. See Clutter.ModifierType

sequence

Clutter.EventSequence

r/w

the event sequence that this event belongs to

source

Clutter.Actor

r/w

event source actor (unused)

stage

Clutter.Stage

r/w

event source stage

time

int

r/w

event time

type

Clutter.EventType

r/w

event type

x

float

r/w

the X coordinate of the pointer, relative to the stage

y

float

r/w

the Y coordinate of the pointer, relative to the stage

Methods

None

Details

class Clutter.TouchEvent

Used for touch events.

The type field will be one of Clutter.EventType.TOUCH_BEGIN, Clutter.EventType.TOUCH_END, Clutter.EventType.TOUCH_UPDATE, or Clutter.EventType.TOUCH_CANCEL.

Touch events are grouped into sequences; each touch sequence will begin with a Clutter.EventType.TOUCH_BEGIN event, progress with Clutter.EventType.TOUCH_UPDATE events, and end either with a Clutter.EventType.TOUCH_END event or with a Clutter.EventType.TOUCH_CANCEL event.

With multi-touch capable devices there can be multiple event sequence running at the same time.

New in version 1.10.