Clutter.TouchEvent¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
axes |
r/w |
reserved |
|
device |
r/w |
the device that originated the event. If you want the physical device the event originated from, use |
|
flags |
r/w |
event flags |
|
modifier_state |
r/w |
a bit-mask representing the state of modifier keys (e.g. Control, Shift, and Alt) and the pointer buttons. See |
|
sequence |
r/w |
the event sequence that this event belongs to |
|
source |
r/w |
event source actor (unused) |
|
stage |
r/w |
event source stage |
|
time |
r/w |
event time |
|
type |
r/w |
event type |
|
x |
r/w |
the X coordinate of the pointer, relative to the stage |
|
y |
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, orClutter.EventType.TOUCH_CANCEL.Touch events are grouped into sequences; each touch sequence will begin with a
Clutter.EventType.TOUCH_BEGINevent, progress withClutter.EventType.TOUCH_UPDATEevents, and end either with aClutter.EventType.TOUCH_ENDevent or with aClutter.EventType.TOUCH_CANCELevent.With multi-touch capable devices there can be multiple event sequence running at the same time.
New in version 1.10.