public bool GetActionUp() { if (KeyboardBind.GetKeyUp()) { return(true); } return(ControllerBind.GetButtonUp()); }
public float GetActionRawValue() { if (KeyboardBind.GetValue() > 0.0f) { return(KeyboardBind.GetValue()); } return(ControllerBind.GetAxisRaw()); }
/// <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); }
public InputActionBind(KeyboardBind aKeyboardBind, ControllerBind aControllerBind) { KeyboardBind = aKeyboardBind; ControllerBind = aControllerBind; }