示例#1
0
 public boolean typed(JInputManager.EvJinputButtonEvent e) {
   for (KeyBindingType kb : types)
     if (kb.typed(null, e)) // TODO: any need to separate here?
     return true;
   return false;
 }
示例#2
0
 /** Get axis value. NULL only on exception */
 public float getAxis(JInputManager.EvJinputStatus status) {
   float v = 0;
   for (KeyBindingType kb : types) v += kb.getAxis(status);
   return v;
 }
示例#3
0
 /** Has key been typed? */
 public boolean typed(KeyEvent e) {
   for (KeyBindingType kb : types) if (kb.typed(e, null)) return true;
   return false;
 }
示例#4
0
 /** Has key been typed? */
 public boolean held(JInputManager.EvJinputStatus status) {
   for (KeyBindingType kb : types) if (kb.held(null, status)) return true;
   return false;
 }
示例#5
0
  /** Write keybinding info to an element */
  public void writeXML(Element e) {
    e.setAttribute("plugin", pluginName);
    e.setAttribute("desc", description);

    for (KeyBindingType t : types) t.writeXML(e);
  }