Version: 2018.3
Oculus の入力
XR API リファレンス

Daydream Controllers

Unity natively supports the Daydream Controller, and uses the UnityEngine.Input to read the axis and button values from the controller. Tracking data for the Daydream Controller is exposed via the XRNode system.

Naming convention and detection

When properly configured and connected to the Android device, the Daydream Controller appears in the list that UnityEngine.Input.GetJoystickNames returns. It appears as the Daydream Controller - Right or Daydream Controller - Left, depending on the Daydream controller’s handedness setting (in the Daydream application settings).

Unity Input System Mappings

Hardware Feature Unity Button ID Unity Axis ID Unity Axis Value When Pressed
1 - TouchPad Vertical N/A Left - Axis 1
Right - Axis 4
–1 is up, 1 is down
1 - TouchPad Horizontal N/A Left - Axis 2
Right - Axis 5
–1 is left, 1 is right
1 - TouchPad Touch Left - Button 18
Right - Button 19
N/A
1 - TouchPad Click Left - Button 16
Right - Button 17
N/A
2 - App Button Left - Button 2
Right - Button 0
N/A
3 - Menu (Reserved) N/A N/A
5 - Volume (Reserved) N/A N/A
Oculus の入力
XR API リファレンス
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961