This shows you the differences between two versions of the page.
software:gui-designer:gestures [2012/12/21 04:22] jarrod [Instant] |
software:gui-designer:gestures [2016/12/13 21:35] (current) jarrod [Attaching Gestures] |
||
---|---|---|---|
Line 5: | Line 5: | ||
===== Attaching Gestures ===== | ===== Attaching Gestures ===== | ||
- | Gestures can currently be attached to Pages, Subpages and Image objects. We also plan to eventually allow gestures to be applied to buttons, text, sliders, etc.\\ | + | Gestures can currently be attached to Pages, Subpages and Image objects.\\ |
The use of Images and Subpages with attached Gestures allows you to create only certain areas of the interface which react to a gesture.\\ | The use of Images and Subpages with attached Gestures allows you to create only certain areas of the interface which react to a gesture.\\ | ||
\\ | \\ | ||
Line 33: | Line 33: | ||
==== Taps ==== | ==== Taps ==== | ||
- | Taps are a quick press and release on the touchscreen, in a single motion. They can be defined with between 1 and 10 #finger touches. Tap gestures can also specify the number of taps, like a double click on a mouse. The number of taps can range from 1 to any number. | + | Taps are a quick press and release on the touchscreen, in a single motion. They can be defined with between 1 and 10 finger touches. Tap gestures can also specify the number of taps, like a double click on a mouse. The number of taps can range from 1 to any number. But if you have a gesture assigned for two taps and one for three taps, both gestures will be triggered when performing a triple tap on the device.\\ |
+ | There are some [[software:gui-designer:tokens|tokens]] created by default which can be used in dynamic commands: | ||
+ | * ''[startx]'' and ''[x]'' = X position of the gesture. | ||
+ | * ''[starty]'' and ''[y]'' = Y position of the gesture. | ||
==== Presses ==== | ==== Presses ==== | ||
- | Press gestures are a way to define multi-touch press actions. You can define the number of 'finger touches', just like with a Tap gesture. Press gestures fire as soon as the object is pressed. | + | Press gestures are a way to define multi-touch press actions. You can define the number of 'finger touches', just like with a Tap gesture. Press gestures fire as soon as the object is pressed.\\ |
+ | There are some [[software:gui-designer:tokens|tokens]] created by default which can be used in dynamic commands: | ||
+ | * ''[startx]'' and ''[x]'' = X position of the gesture. | ||
+ | * ''[starty]'' and ''[y]'' = Y position of the gesture. | ||
==== Swipes ==== | ==== Swipes ==== | ||
- | Swipe gestures allow for quick swipes in up/down/left or right directions. The number of finger touches can be defined, from 1 to 10. A swipe gesture fires as soon as its detected. There is no beginning and end of a swipe. Swipes are great for quick volume control or lighting control. | + | Swipe gestures allow for quick swipes in up/down/left or right directions. The number of finger touches can be defined, from 1 to 10. A swipe gesture fires as soon as its detected. There is no beginning and end of a swipe. Swipes are great for quick volume control or lighting control.\\ |
+ | There are some [[software:gui-designer:tokens|tokens]] created by default which can be used in dynamic commands: | ||
+ | * ''[startx]'' = start X position of the gesture. | ||
+ | * ''[starty]'' = start Y position of the gesture. | ||
+ | * ''[x]'' = X position at the end of the gesture. | ||
+ | * ''[y]'' = Y position at the end of the gesture. | ||
==== Pinch Zoom ==== | ==== Pinch Zoom ==== | ||
Line 78: | Line 89: | ||
* ''[deltax]'' = the difference between the [startx] and [x] at any time in the gesture. | * ''[deltax]'' = the difference between the [startx] and [x] at any time in the gesture. | ||
* ''[deltay]'' = the difference between the [starty] and [y] at any time in the gesture. | * ''[deltay]'' = the difference between the [starty] and [y] at any time in the gesture. | ||
+ | * ''[velocityx]'' = rate at which the fingers are moving horizontally. | ||
+ | * ''[velocityy]'' = rate at which the fingers are moving vertically. |