No subject


Thu Jul 22 06:11:08 MST 2010


Code:

  public Command myKeyEvent(KeyStroke stroke) {
    /*
     * 1. Are we interested in this key command? Is it our command key?
Does it
     * match one of our watching keystrokes?
     */
    boolean seen = false;
    if (key.equals(stroke)) {
      seen = true;
    }

    for (int i = 0; i < watchKeys.length && !seen; i++) {
      if (watchKeys[i].equals(stroke)) {
        seen = true;
      }
    }



_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=18948#p18948


More information about the messages mailing list