Esempio n. 1
0
  /**
   * This method is called when a mouse selection needs to be canceled. Pressing the right button,
   * releasing the left button or leaving the key area are examples of typical conditions.
   */
  private void cancelMouseSelection() {
    // If the mouse timer is different from null, that means that a key is
    // pressed
    // This check is important so that event messages are not sent by
    // mistake

    if (currentKey != null) {

      ImageData newImageData = getImageData(false, true);
      setSkinImage(newImageData, currentKey, true);
      androidInput.sendClick(currentKey.getKeysym(), false);
    }
  }