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");
			}       

  

posted @ 2016-11-11 18:55  MrBlue  阅读(363)  评论(0编辑  收藏  举报