TouchInertia - This example demonstrates how to use multi-touch device and events.
SYNOPSIS:
DESCRIPTION:
TouchInertia demonstrates how to use multi-touch gesture in Qt. It provides a window you can touch with several fingers to manipulate spheres. SoQtTouchScreen is register, touchEvent can be released. A callback collects these events and apply modifications on spheres position. When an Up event is released, a SoIdleSensor is scheduled and the last speed is saved. In the idle sensor callback, the speed decrease according to an absorption factor until zero and spheres bounce on window border.
SEE ALSO
SoTouchEvent, SoQtTouchScreen, SoIdleSensor
FILES:
-
Inventor/MultiTouch/TouchInertia/TouchInertia.cxx