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