public override bool GetCommand_Bool(Cmd_Bool cmd) { InputControl input = _cmdBoolToInputControl[cmd]; // Buttons foreach (var btn in input.buttons) { if (XboxGamepadInput.GetButton(btn)) { return(true); } } // Axes /*foreach (var axis in input.axes) * { * if (XboxGamepadInput.GetAxisRaw(axis) > 0.5f) // TODO: what if negative axis value? * { * return true; * } * }*/ return(false); }
public override bool GetCommand_Bool(Cmd_Bool cmd) { Button[] buttons = _cmdBoolToButton[cmd]; foreach (var btn in buttons) { string btnName = btn.ToString(); if (string.IsNullOrEmpty(btnName)) { continue; } if (Input.GetButton(btnName)) { return(true); } } return(false); }
public virtual bool GetCommand_Bool(Cmd_Bool cmd) { throw new NotImplementedException(); }