当先锋百科网

首页 1 2 3 4 5 6 7

VR常用方法(Pico_API

        手柄

介绍

方法

判断按钮是否按住Pvr_UnitySDKAPI.Controller.UPvr_GetKey()
判断按键是否按下Pvr_UnitySDKAPI.Controller.UPvr_GetKeyDown()
判断按键是否抬起Pvr_UnitySDKAPI.Controller.UPvr_GetKeyUp()
判断按键是否被长按Pvr_UnitySDKAPI.Controller.UPvr_GetKeyLongPressed()
判断按键是否按下抬起了一次Pvr_UnitySDKAPI.Controller.UPvr_GetKeyClick()

        方向键(摇杆)

介绍

方法

判断Joystick键是否向上Pvr_UnitySDKAPI.Controller.UPvr_GetJoystickUp()
判断Joystick键是否向下Pvr_UnitySDKAPI.Controller.UPvr_GetJoystickDown()
判断Joystick键是否向左Pvr_UnitySDKAPI.Controller.UPvr_GetJoystickLeft()
判断Joystick键是否向右Pvr_UnitySDKAPI.Controller.UPvr_GetJoystickRight()

        交互

Neo2手柄的振动接口Pvr_UnitySDKAPI.Controller.UPvr_VibrateNeo2Controller()
获取手柄连接状态Pvr_UnitySDKAPI.Controller. UPvr_GetControllerBindingState()
初始化电量音量亮度服务Pvr_UnitySDKAPI.VolumePowerBrightness.UPvr_InitBatteryVolClass()
开启音量服务Pvr_UnitySDKAPI.VolumePowerBrightness.UPvr_StartAudioReceiver()
关闭音量服务Pvr_UnitySDKAPI.VolumePowerBrightness.UPvr_StopAudioReceiver()
初始化距离传感器Pvr_UnitySDKAPI. Sensor. UPvr_InitPsensor()
获得头戴距离传感器的状态Pvr_UnitySDKAPI. Sensor. UPvr_GetPsensorState()

Pico Neo 2:

按键输入事件

Pvr_KeyCode.HOME

Pvr_KeyCode.APP

Pvr_KeyCode.TRIGGER

Pvr_KeyCode.Right (手柄1为Right)
Pvr_KeyCode.Left (手柄0为left)

Pvr_KeyCode.X(手柄0)

Pvr_KeyCode.Y(手柄0)

Pvr_KeyCode.A(手柄1)

Pvr_KeyCode.B(手柄1)

Pvr_KeyCode.TOUCHPAD