This site has been permanently archived. The content on this site was last updated in 2019.
com.google.vr.sdk.controller
Code for interacting with Daydream controllers.
Interfaces
Classes
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["This documentation provides code and interfaces for interacting with Daydream controllers in your VR applications."],["The `ControllerManager` class manages the connection to a physical Daydream controller and provides access to its state."],["The `Controller` class represents a single Daydream controller and exposes its properties, such as orientation, battery level, and connection state."],["Developers can use the provided interfaces and classes to receive events related to the controller, such as button presses and connection changes, allowing them to build interactive VR experiences."]]],["This code provides tools for managing Daydream VR controllers. The `ControllerManager` handles connections, while `Controller` represents an individual controller. Key information includes `Controller.BatteryLevels` and `Controller.ConnectionStates` for monitoring controller status. `Controller.EventListener` and `ControllerManager.EventListener` manage events. `Orientation` tracks the controller's 3D orientation. `Controller.BetaTrackingStatusFlags` indicates the tracking status. `ControllerManager.ApiStatus` provides information about the status of the controller API.\n"]]