【发布时间】:2022-11-28 09:35:41
【问题描述】:
我正在使用 Unity 构建汽车模拟器游戏。对于输入,我使用 Logitheck 方向盘 G29。现在我需要使用 Hand Controller 来加速或刹车。 这是我的手控器 手控器 HC1 Link
现在我可以检查他的输入了吗?我的 Windows 10 系统可以识别此设备,但如果我尝试使用此设备启动游戏,我无法加速或破坏汽车。
我在我的 Unity InputController 中配置了这个:
在我的 IRDSPlayerControls.cs 文件中,我编写了以下代码行:
if (Input.anyKey)
{
foreach (KeyCode kcode in Enum.GetValues(typeof(KeyCode)))
{
Debug.Log("Joystick pressed " + kcode);
}
}
Debug.Log("Input debug acc: " + Input.GetAxis("Vertical3"));
Debug.Log("Input debug frenata: " + Input.GetAxis("Vertical4"));
在 Unity 的控制台中,我可以显示这个:
Input debug acc: -1
Input debug frenata: -1
【问题讨论】:
-
它可以与其他游戏一起使用吗?
-
我知道“Forza Horizon 5”游戏是否支持此设备
标签: unity3d