private void CheckEvents(ControllerType type, Text target) { target.text = ""; target.text += $"{type} input controller is triggering? {_inputController.IsTrigger(type)}\n"; target.text += $"{type} input controller trigger is down? {_inputController.IsTriggerDown(type)}\n"; target.text += $"{type} input controller trigger is up? {_inputController.IsTriggerUp(type)}\n"; target.text += $"{type} input controller is touching? {_inputController.IsTouch(type)}\n"; target.text += $"{type} input controller touch is down? {_inputController.IsTouchDown(type)}\n"; target.text += $"{type} input controller touch is up? {_inputController.IsTouchUp(type)}\n"; target.text += $"{type} input controller One button is down? {_inputController.IsDown(type, ButtonType.One)}\n"; target.text += $"{type} input controller One button is up? {_inputController.IsUp(type, ButtonType.One)}\n"; target.text += $"{type} input controller Two button is down? {_inputController.IsDown(type, ButtonType.Two)}\n"; target.text += $"{type} input controller Two button is up? {_inputController.IsUp(type, ButtonType.Two)}\n"; target.text += $"{type} input controller Three button is up? {_inputController.IsUp(type, ButtonType.Three)}\n"; target.text += $"{type} input controller Three button is down? {_inputController.IsDown(type, ButtonType.Three)}\n"; target.text += $"{type} input controller Four button is up? {_inputController.IsUp(type, ButtonType.Four)}\n"; target.text += $"{type} input controller Four button is down? {_inputController.IsDown(type, ButtonType.Four)}\n"; }
private void Update() { if (_inputController.IsTriggerDown) { Debug.Log("Input controller trigger is down."); } if (_inputController.IsTriggerUp) { Debug.Log("Input controller trigger is up."); } if (_inputController.IsTouchDown) { Debug.Log("Input controller touch is down."); } if (_inputController.IsTouchUp) { Debug.Log("Input controller touch is up."); } if (_inputController.IsTouch) { Debug.Log("Input controller is touching."); } if (_inputController.IsDown(ButtonType.One)) { Debug.Log("Input controller One button is down."); } if (_inputController.IsDown(ButtonType.Two)) { Debug.Log("Input controller Two button is down."); } if (_inputController.IsDown(ButtonType.Three)) { Debug.Log("Input controller Three button is down."); } if (_inputController.IsDown(ButtonType.Four)) { Debug.Log("Input controller Four button is down."); } if (_inputController.IsUp(ButtonType.One)) { Debug.Log("Input controller One button is up."); } if (_inputController.IsUp(ButtonType.Two)) { Debug.Log("Input controller Two button is up."); } if (_inputController.IsUp(ButtonType.Three)) { Debug.Log("Input controller Three button is up."); } if (_inputController.IsUp(ButtonType.Four)) { Debug.Log("Input controller Four button is up."); } }