Examples of KeyBindingEvent


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

    }
    String id = binding.getId();
    Plugin plugin = binding.getPlugin();
    if (pressed) {
      try {
        binding.getDelegate().keyPressed(new KeyBindingEvent(player, binding));
      } catch (Exception e) {
        System.out.println("Could not execute Key Press Delegate of plugin [" + plugin.getDescription().getName() + "] for action [" + id + "]!");
        e.printStackTrace();
      }
    } else {
      try {
        binding.getDelegate().keyReleased(new KeyBindingEvent(player, binding));
      } catch (Exception e) {
        System.out.println("Could not execute Key Release Delegate of plugin [" + plugin.getDescription().getName() + "] for action [" + id + "]!");
        e.printStackTrace();
      }
    }
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.