Ejemplo n.º 1
0
 public void OnClick(GUserInputSetter input)
 {
     if (this.input == null) {
         this.input = input;
         this.box.setHandlerAndShow(this);
     }
 }
Ejemplo n.º 2
0
 public void OnCaptureKey(KeyCode key)
 {
     if (this.input != null) {
         if (this.input.Key != key) {
             if (Keyboard.changeKey(this.input.Key, key)) {
                 this.input.Key = key;
             }
         }
         this.box.unsetHandlerAndHide();
         this.input = null;
     }
 }