Community
Participate
Working Groups
Since 3.7, SWT provides support for touch-aware input devices via a couple of classes: Touch, TouchSource, GestureEvent, GestureListener Furthermore, the Control class has new methods that control if and how touch and gesture events are processed. The Display#isTouchEnabled() method tells whether touch-aware devices are present and supported. I suggest to implement these APIs with 'empty' methods. Later on they could be implemented properly for clients on which it makes sense like iPad, iPhone and Android.
Bug 279884 is fixed. This might be something to consider for M6.
Touch, TouchSource, TouchEvent, TouchListener, GestureEvent, GestureListener classes have been added. Control#add/removeTouch/GestureListener and Control#setTouchEnabled are implemented as 'empty'. Control#getTouchEnabled and Display#getTouchEnabled return false. Added SWT.GESTURE_xxx and SWT.TOUCHSTATE_xxx constants too. Changes are in CVS HEAD.