Examples of onKeyPressed()


Examples of org.spoutcraft.api.gui.Control.onKeyPressed()

      for (Widget widget : screen.getAttachedWidgets(true)) {
        if (widget instanceof Control) {
          Control control = (Control) widget;
          if (control.isFocus()) {
            if (Keyboard.getEventKeyState()) {
              handled = control.onKeyPressed(org.spoutcraft.api.gui.Keyboard.getKey(Keyboard.getEventKey()));
            } else {
              handled = control.onKeyReleased(org.spoutcraft.api.gui.Keyboard.getKey(Keyboard.getEventKey()));
            }
          }
          if (handled) {
View Full Code Here

Examples of robocode.robotinterfaces.IInteractiveEvents.onKeyPressed()

  final void dispatch(IBasicRobot robot, IRobotStatics statics, Graphics2D graphics) {
    if (statics.isInteractiveRobot()) {
      IInteractiveEvents listener = ((IInteractiveRobot) robot).getInteractiveEventListener();

      if (listener != null) {
        listener.onKeyPressed(getSourceEvent());
      }
    }
  }

  /**
 
View Full Code Here

Examples of vazkii.botania.api.lexicon.LexiconPage.onKeyPressed()

  }

  @Override
  protected void keyTyped(char par1, int par2) {
    LexiconPage page = entry.pages.get(this.page);
    page.onKeyPressed(par1, par2);

    if(par2 == 203 || par2 == 200 || par2 == 201) // Left, Up, Page Up
      prevPage();
    else if(par2 == 205 || par2 == 208 || par2 == 209) // Right, Down Page Down
      nextPage();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.