Exemple #1
0
    public bool GetActionUp()
    {
        if (KeyboardBind.GetKeyUp())
        {
            return(true);
        }

        return(ControllerBind.GetButtonUp());
    }
Exemple #2
0
    public float GetActionRawValue()
    {
        if (KeyboardBind.GetValue() > 0.0f)
        {
            return(KeyboardBind.GetValue());
        }

        return(ControllerBind.GetAxisRaw());
    }
Exemple #3
0
 /// <summary>
 ///     Sets a bind to a specific keyboard key. When this key is pressed the method will be called
 /// </summary>
 /// <param name="bind">The binded class</param>
 /// <param name="key">The key</param>
 public void setKeyboardBind(KeyboardBind bind, Keys key)
 {
     keyboardBinds.Add(key, bind);
 }
Exemple #4
0
 public InputActionBind(KeyboardBind aKeyboardBind, ControllerBind aControllerBind)
 {
     KeyboardBind   = aKeyboardBind;
     ControllerBind = aControllerBind;
 }