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 |