A couple of years ago I played with writing a Java app for my Palm IIIx and one of the useful things was being able to detect the equivalent of mouseDown, mouseMove, and mouseUp events. Is there support for such things in MIDP 2.0?
SCJP, SCJD, SCEA 5 "Any sufficiently analyzed magic is indistinguishable from science!" Agatha Heterodyne (Girl Genius)
Is there some idiomatic equivalent on a cell phone that doesn't have a touch-sensitive screen?
Joined: Apr 22, 2003
You can find out whether pointer events are supported by calling the hasPointerEvents() and hasMotionPointerEvents() in the Canvas class. If these are supported, then your Canvas subclass will be notified via the pointerPressed(), pointerReleased(), and pointerDragged() methods in Canvas. If pointer events are crucial to your application but not supported on the device, you will need to provide an alternate method of input, probably based on keys.
Joined: Oct 01, 2001
Jonathan, Thanks for the quick response. I appreciate it. If I don't win a copy of your book, I'll probably have to go out and buy one.