Pointer Events

Team-Fly

Some devices, particularly PDAs, may support a pointer. The popular Palm platform, for example, is based around the use of a stylus and touch-sensitive screen. You can find out at runtime if your device supports pointer events by calling hasPointerEvents() and hasPointerMotionEvents(). If the device supports pointer events, the following methods get called when the pointer is pressed and released:

 protected void pointerPressed(int x, int y) protected void pointerReleased(int x, int y) 

If the device supports pointer motion events, the following method will be called as the user drags the stylus around the screen.

 protected void pointerDragged(int x, int y) 


Team-Fly


Wireless Java. Developing with J2ME
ColdFusion MX Professional Projects
ISBN: 1590590775
EAN: 2147483647
Year: 2000
Pages: 129

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net