posted 21 years ago
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.