User Tools

Site Tools


gestures:touch:context-aware:1-finger-pivot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

gestures:touch:context-aware:1-finger-pivot [2015/09/15 13:00]
glass created
gestures:touch:context-aware:1-finger-pivot [2019/01/29 19:07]
Line 1: Line 1:
-====== 1-Finger-Pivot ====== 
-(Touch -> Context-Aware ->  One Point Pivot “1-Finger-Pivot”) 
  
-The 1-finger-pivot gesture analyzes the motion of a single touch point cluster and calculates the change in rotation ("​pivot_dtheta"​) of a pivot arm drawn from the center of the touch object to the touch point. 
- 
-<​code:​csharp linenums:​1>​ 
-<Gesture id="​1-finger-pivot-inertia"​ type="​pivot">​ 
-    <​match>​ 
-        <​action>​ 
-            <​initial>​ 
-                <cluster point_number="​1"/>​ 
-            </​initial>​ 
-        </​action>​ 
-    </​match>​ 
-    <​analysis>​ 
-        <​algorithm class="​kinemetric"​ type="​continuous">​ 
-            <library module="​pivot"/>​ 
-            <​returns>​ 
-                <​property id="​pivot_dtheta"​ result="​pivot_dtheta"/>​ 
-            </​returns>​ 
-        </​algorithm>​ 
-    </​analysis> ​   ​ 
-    <​processing>​ 
-        <​delta_filter>​ 
-            <​property ref="​pivot_dtheta"​ active="​true"​ delta_min="​0.01"​ delta_max="​10"/>​ 
-        </​delta_filter>​ 
-    </​processing>​ 
-    <​mapping>​ 
-        <update dispatch_type="​continuous">​ 
-            <​gesture_event type="​pivot">​ 
-                <​property ref="​pivot_dtheta"​ target="​rotate"/>​ 
-            </​gesture_event>​ 
-        </​update>​ 
-    </​mapping>​ 
-</​Gesture>​ 
-</​code>​ 
gestures/touch/context-aware/1-finger-pivot.txt · Last modified: 2019/01/29 19:07 (external edit)