private void HandleButtonPressed(IntellGamePad gpad, IntellGamePad.Buttons button) { Debug.LogFormat("Gamepad {0} button pressed {1}", gpad.ID, button); if (button == IntellGamePad.Buttons.X && gpad.ID == 0 && GameManager.singleton.tm.isTurn == true) { buttonCheck = (int)button; } else if (button == IntellGamePad.Buttons.X && gpad.ID == 1 && GameManager.singleton.tm.isTurn == false) { buttonCheck = (int)button; } }
private void HandleAxisStopUsed(IntellGamePad gpad, IntellGamePad.Buttons button, IntellGamePad.AxisValue values) { Debug.LogFormat("Gamepad {0} axis {1} stopped use, values: {2},{3}", gpad.ID, button, values.X, values.Y); if (button == IntellGamePad.Buttons.LeftStick && gpad.ID == 0 && GameManager.singleton.tm.isTurn == true) { buttonCheck = (int)button; xCheck = values.X; yCheck = values.Y; } else if (button == IntellGamePad.Buttons.LeftStick && gpad.ID == 1 && GameManager.singleton.tm.isTurn == false) { buttonCheck = (int)button; xCheck = values.X; yCheck = values.Y; } }
private void HandleButtonPressed(IntellGamePad gpad, IntellGamePad.Buttons button) { Debug.LogFormat("Gamepad {0} button pressed {1}", gpad.ID, button); }
private void HandleAxisStopUsed(IntellGamePad gpad, IntellGamePad.Buttons button, IntellGamePad.AxisValue values) { Debug.LogFormat("Gamepad {0} axis {1} stopped use, values: {2},{3}", gpad.ID, button, values.X, values.Y); }