gpt4 book ai didi

android - 如何在 Unity 中使用蓝牙 Controller ?

转载 作者:行者123 更新时间:2023-11-30 00:52:23 26 4
gpt4 key购买 nike

我在图片中有蓝牙 Controller 。如何在我的安卓游戏中使用操纵杆和其他 6 个按钮?我只能使用 (Input.GetKeyDown(KeyCode.Escape)) 访问 Controller 上的退出按钮

bluetooth controller

最佳答案

您可能可以通过执行以下操作来调试它:

if(Input.anyKeyDown)
Debug.Log(Input.inputString);

在您的更新功能中查看按下了哪些按钮。

Documentation for Input.inputString

您可能还会发现一些线索 here

还有 this用于设置 Controller 。

关于android - 如何在 Unity 中使用蓝牙 Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40764880/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com