Unity3D 响应摇杆

    if (Input.GetKeyUp(KeyCode.Joystick1Button0))
			{
				Debug.Log("Joystick1Button0");
			}
			if (Input.GetKeyUp(KeyCode.Joystick1Button1) || Input.GetKeyUp(KeyCode.Escape))
			{
				PlatformUtil.ExitUnityActivity.Exit();
			}

			if (Input.GetKeyUp(KeyCode.Joystick1Button2))
			{
				Debug.Log("Joystick1Button2");
			}
			if (Input.GetKeyUp(KeyCode.Joystick1Button3))
			{
				Debug.Log("Joystick1Button3");
			}       

  

原文地址:https://www.cnblogs.com/mrblue/p/6055323.html