Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335131 - Support Touch and Gesture APIs
Summary: Support Touch and Gesture APIs
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.4 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 279884
Blocks:
  Show dependency tree
 
Reported: 2011-01-23 13:01 EST by Rüdiger Herrmann CLA
Modified: 2011-03-07 10:56 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.