Examples of KeyPressedEvent


Examples of org.getspout.spoutapi.event.input.KeyPressedEvent

  public void run(int id) {
    SpoutPlayer player = SpoutManager.getPlayerFromId(id);
    if (player != null) {
      player.updateKeys(settingKeys);
      if (pressDown) {
        Bukkit.getServer().getPluginManager().callEvent(new KeyPressedEvent(this.key, player, ScreenType.getType(screenType)));
      } else {
        Bukkit.getServer().getPluginManager().callEvent(new KeyReleasedEvent(this.key, player, ScreenType.getType(screenType)));
      }
    }
  }
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.