Results 1 to 8 of 8
Thread: Touch Screen Libraries
- 11-23-2010, 03:07 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
- 11-23-2010, 03:09 PM #2
Isn't a touchscreen pretty much a mouse input? So wouldn't you just want to use standard MouseListeners and whatnot?
- 11-23-2010, 03:41 PM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,373
- Blog Entries
- 7
- Rep Power
- 17
Not really, a finger can't 'hover over' the screen, i.e. a finger is there or it isn't. If it touches the screen you can implement a 'mouse moved' event. More expensive devices might 'see' a finger when it doesn't really touch the screen. Multiple finger detection is even more expensive.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-23-2010, 03:45 PM #4
- 11-23-2010, 04:01 PM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
What does Android use?
- 11-23-2010, 04:16 PM #6
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,373
- Blog Entries
- 7
- Rep Power
- 17
Yep (I know those things because I've been there, done that ;-) but don't expect any mouse move events when the finger doesn't touch the screen; also there is no real mouse click event, there's only a finger touch, finger raised and finger moved event (if the coordinates have changed since the generation of the last event, and the finger hadn't left the screen).
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 11-23-2010, 04:36 PM #7
Yeah, I wouldn't expect any events when the screen isn't being touched. But for the basics (which I think the OP is going for), even relying on mouse motion events might be good enough.
I also guess I'd expect more modern touch screens to differentiate better between a mouse motion event and a mouse clicked event. I'd be curious about what Android does as well.
- 11-23-2010, 04:43 PM #8
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
It has its own Touch class and MotionEvent.
It also has a gesture package.
I'd forgotten I'd actually looked at some of this earlier this year...:)
ETA: And the events seem to come through here.
Similar Threads
-
Touch Displays
By Ciwan in forum New To JavaReplies: 4Last Post: 10-21-2010, 09:47 AM -
Touch recursion question
By myst in forum New To JavaReplies: 18Last Post: 06-08-2010, 06:48 PM -
How could Swing support multi-touch?
By pianyao in forum AWT / SwingReplies: 2Last Post: 08-18-2009, 10:06 AM -
Blank Screen while navigating from one screen to another
By mohana.krishna in forum Java ServletReplies: 0Last Post: 03-03-2009, 05:03 PM -
Reading Libraries.
By leiferouis in forum New To JavaReplies: 4Last Post: 02-07-2009, 08:34 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks