|
|
The gesture in touch and multi-touch environment is the finger movement recognition. Fortunately in Usine the recognition works also with mouse movements.
For example if you move a single finger in one direction it’s called a panning (or pan). It can be a pan left, up, right, down.
To enable gesture recognition you have to activate the touch & Multi-touch option in the setup. Even if you don’t have a touch screen and you want to use the mouse.
After a restart of Usine, if the trace gesture option activated, gestures ID are displayed in the trace panel like:
In Usine every panel can receive gesture information from the gesture outlet.
A gesture information is an array which contains:
| ID | Description | data1 | data2 | data3 | data4 | data5 |
|---|---|---|---|---|---|---|
| 1 | pan left | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 2 | pan right | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 3 | pan up | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 4 | pan down | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 5 | pan left bi points | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 6 | pan right bi points | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 7 | pan up bi points | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 8 | pan down bi points | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |
| 100 | short touch (or click) single : when the user has pressed the screen or the left mouse button during more than 200 ms | finger or mouse position X | finger or mouse position Y | |||
| 101 | long touch (or click) single : when the user has pressed the screen or the left mouse button during more than 1000 ms | finger or mouse position X | finger or mouse position Y | |||
| 102 | short bi-touch : when the user has pressed the screen with 2 fingers during more than 200 ms | first finger position X | first finger position Y | |||
| 103 | long bi-touch : when the user has pressed the screen with 2 fingers during more than 1000 ms | first finger position X | first finger position Y | |||
| 255 | unknown gesture | mouse down position X | mouse up position X | mouse down position Y | mouse up position Y | movement duration (ms) |