Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335131

Summary: Support Touch and Gesture APIs
Product: [RT] RAP Reporter: RĂ¼diger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: prakash, tbuschto
Version: unspecified   
Target Milestone: 1.4 M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 279884    
Bug Blocks:    

Description RĂ¼diger Herrmann CLA 2011-01-23 13:01:07 EST
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.
Comment 1 Ralf Sternberg CLA 2011-02-07 16:16:06 EST
Bug 279884 is fixed. This might be something to consider for M6.
Comment 2 Ivan Furnadjiev CLA 2011-03-07 10:56:08 EST
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.