Exemple #1
0
 public static void CheckButtonEvents(IC.InputControlType type,
                                      IC.InputDevice device,
                                      GameObject player,
                                      Message?pressedEvent  = null,
                                      Message?releasedEvent = null)
 {
     if (device != null)
     {
         IC.InputControl button = device.GetControl(type);
         SendButtonEvent(button.WasPressed, button.WasReleased,
                         player, pressedEvent, releasedEvent);
     }
 }
Exemple #2
0
 /// <summary> Creates a new <see cref="Bind"/> from a <see cref="Button"/>. </summary>
 public ButtonBind(Button button)
 {
     this.button = button;
 }