Java Midp 2.0 Touch Screen Games Review

Most vendors ignored these until later JTWI/Java Verified phones. Use vendor-specific APIs. Nokia Touch API (S60 5th Ed / S40) // Need: com.nokia.mid.ui.TouchEvent import com.nokia.mid.ui.TouchEvent; import com.nokia.mid.ui.TouchDevice; // In FullCanvas subclass public void pointerPressed(int x, int y) // still works, but better:

GameCanvas() playerX = getWidth() / 2; playerY = getHeight() - 40; setFullScreenMode(true); java midp 2.0 touch screen games

protected void pointerReleased(int x, int y) touching = false; onTouchUp(x, y); Most vendors ignored these until later JTWI/Java Verified

public void start() running = true; new Thread(this).start(); int y) // still works

protected void pointerPressed(int x, int y) touching = true; touchX = x; touchY = y; onTouchDown(x, y);

Продолжая просматривать этот сайт, вы соглашаетесь с тем, что мы используем печенье и правила и условия.
Принять