Since version V6.40 of Embedded Wizard, the development of multi-touch GUI applications is supported. The Mosaic 2.0 framework was enhanced in order to support multi-touch events:
- The class Core::Root provides two additional methods DriveMultiTouchHitting() and DriveMultiTouchMovement(). These methods are intended to feed the GUI application with touch events received from the underlying target system. You will never need to invoke theses methods directly from your GUI application. Usually the method will be invoked in response to touch events received in the main() message loop from the target specific touch screen driver. For more details see the document 'Mosaic 2.0 User Manual'.
- The class Core::SimpleTouchHandler has been extended by the property EnableMultiTouch and the variable Finger. The property EnableMultiTouch determines how the touch handler should behave when the user interacts with it by using more then one finger. If this property is false and the handler is actually involved in a user touch interaction then the handler will ignore all additional touch events. Such events can be thus handled by other handlers lying e.g. behind this handler. If this property is true, the handler will receive all affected touch events. In order to distinguish the multiple taps and touches the variable Finger can be evaluated.
The variable Finger stores the number of the finger associated with the current touch event. This can be useful if the handler is intended to handle multi-touch events. The fingers are numbered with values lying in the range 0 .. 9. For more details see the document 'Mosaic 2.0 User Manual'.
Please note, that the processing of multi-touch events is platform dependent and cannot be tested within the Prototyper.