Ejemplo n.º 1
0
  public void mouseMove(int x, int y, int ox, int oy) {
    // Appears that peer does not require inverse scaling
    // when attempting to move the mouse
    /*
    int[] initialScale = new int[2];
    Rectangle bounds = _getScreenBounds(device, initialScale);

    if (initialScale[0] != bounds.width || initialScale[1] != bounds.height)
    {
        x = Math.round(((float)initialScale[0])/((float)bounds.width)*((float)x));
        y = Math.round(((float)initialScale[1])/((float)bounds.height)*((float)y));
    }
    */

    x += ox;
    y += oy;

    peer.mouseMove(x, y);
  }