Package org.getspout.spoutapi.event.input

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

Related Classes of org.getspout.spoutapi.event.input.KeyPressedEvent

Copyright © 2018 www.massapicom. 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.