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; }
/** 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; }
/** Has key been typed? */ public boolean typed(KeyEvent e) { for (KeyBindingType kb : types) if (kb.typed(e, null)) return true; return false; }
/** Has key been typed? */ public boolean held(JInputManager.EvJinputStatus status) { for (KeyBindingType kb : types) if (kb.held(null, status)) return true; return false; }
/** 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); }