public bool GetButton(String buttonName) { if (_externalButton.ContainsKey(buttonName)) { return(_externalButton[buttonName]() || Input.GetButton(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex))); } return(Input.GetButton(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex))); }
private bool GetAxisAsButton(String buttonName, bool neg = false) { if (!neg) { return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) > SENSIBILITY); } else { return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) < -SENSIBILITY); } }
public bool GetAxisAsButton(String buttonName, bool neg = false) { if (!neg) { return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) > 0.5); } else { return(Input.GetAxis(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex)) < -0.5); } }
public float V1() { return(-Input.GetAxis(PlayerInputUtils.GetButtonNameFor(_V_1, _inputIndex))); }
// AXIS // DOWN public bool GetButtonDown(String buttonName) { return(Input.GetButtonDown(PlayerInputUtils.GetButtonNameFor(buttonName, _inputIndex))); }