DeviceInfo.isMenuPointerPressed = ViveInput.GetPressDown(HandRole.RightHand, ControllerButton.Menu)| ViveInput.GetPressDown(HandRole.LeftHand, ControllerButton.Menu);
DeviceInfo.isPointerDown = device.GetTouchDown(SteamVR_Controller.ButtonMask.Trigger);Menu是菜单键,Trigger是扳机,Pad是触摸键
本文介绍了如何使用ViveInput API来检测虚拟现实(VR)控制器的菜单键(Menu)和扳机键(Trigger)是否被按下。此外,还展示了如何通过device API获取触发器的按下状态。这些API对于开发沉浸式的VR应用至关重要。
2316

被折叠的 条评论
为什么被折叠?



