This type of example is basically used in touch screen technology, here we are trying to create a pointer which location is based on the screen touch pointer. The source code for this small example of touch screen application.
This type of example is basically used in touch screen technology, here we are trying to create a pointer which location is based on the screen touch pointer. The source code for this small example of touch screen application.This type of example is basically used in touch screen technology, here we are trying to create a pointer which location is based on the screen touch pointer. The source code for this small example of touch screen application.
public void pressPointer (int x, int y) {
|
is used to initialize the pointer location when pressed. The source code
public void releasePointer (int x, int y) {
|
is used to released the pointer from his location. And the source code
public void dragPointer (int x, int y) {
|
is used when repeating the pointer, then it relocate the location of the pointer. The Application is as follows:
Source Code of PointerExample.java
import javax.microedition.midlet.*;
|
Ads