35 views
in Embedded Wizard Studio by

Like the this project:   https://ask.embedded-wizard.de/9206/a-specific-gui-use-case

      At my project have 2 page: MainPage and DoubleFingerSlidePage.  MainPage will been default show when screen power ON, DoubleFingerSlidePage have 2 list that been control by 2 finger slide. When double finger slide at MainPage, EW will PresentDialog the DoubleFingerSlidePage

      MainPage is been divided to left area and right area,   if SlideTouchHandler.HittingPos at left area,  DoubleFingerSlidePage will show List1. if SlideTouchHandler.HittingPos at right area,  DoubleFingerSlidePage will show List2.

      I have a Special UseCase:

      1. when the 2 finger touch the screen one after another, and the first finger touch left area the last finger touch right area, How can i make sure the SlideTouchHandler.HittingPos information? it's follow the first finger touch or the last finger touch?

      2. If the first finger slide up and the last finger  slide down at the MainPage, we don't want PresentDIalog the DoubleFingerSlidePage . How to achieve this usecase?

1 Answer

0 votes
by

Hello ke007,

at first please recall the example I have created for you in the thread grab cycle and touch influence with another touch. It demonstrates the technical background for the detection of two finger gestures and the relay of single finger gestures. Have you tried out this example?

when the 2 finger touch the screen one after another, and the first finger touch left area the last finger touch right area, How can i make sure the SlideTouchHandler.HittingPos information? it's follow the first finger touch or the last finger touch?

In case of multi-touch gestures, only the last finger controls the movements. The preceding fingers were counted only and for the sake of simplicity their position is not taken in account in this particular case. Using the Simple Touch Handler variable CurrentPos you can query the position of this 'controlling' finger and use it to distinguish between the left and the right screen area. When the user touches the left and the right areas simultaneously, the variable CurrentPos will refer the last finger. In this context, the last finger decides which area is meant.

If the first finger slide up and the last finger  slide down at the MainPage, we don't want PresentDIalog the DoubleFingerSlidePage . How to achieve this usecase?

For the sake of simplicity this special case is not handled by Simple Touch Handler. As explained above, the handler processes the movements of the last finger only. If this behavior is essential, you will need to implement your own handler functionality to detect, track and process such particular gestures. You can also implement your own touch driver to process gestures before the touch events are relayed to the GUI.

 

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...