This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
Class extension for GvrControllerInputDevice
to add beta tracking status getter.
Summary
Public static functions
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGvrControllerInputDeviceExtension\u003c/code\u003e class provides access to beta tracking status and configuration for Google VR controllers.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetConfigurationType\u003c/code\u003e retrieves the current configuration of the controller, whether it's 3DoF or 6DoF.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetTrackingStatusFlags\u003c/code\u003e gives information about the controller's tracking state using a series of bitwise flags.\u003c/p\u003e\n"],["\u003cp\u003eController configuration updates are only applied while the application is paused.\u003c/p\u003e\n"],["\u003cp\u003eAlthough tracking status flags are usually mutually exclusive, it's recommended to test them using bitwise operations.\u003c/p\u003e\n"]]],["This extension for `GvrControllerInputDevice` provides access to beta tracking information. It includes two key functions: `GetConfigurationType`, which retrieves the controller's configuration type (3DoF or 6DoF) and is only updated during app pauses. The second function, `GetTrackingStatusFlags`, fetches the controller's tracking status, returning a bitwise series of flags to represent tracking. These functions require a `GvrControllerInputDevice` as input.\n"],null,["GoogleVR.Beta.GvrControllerInputDeviceExtension\n\nClass extension for [GvrControllerInputDevice](/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice) to add beta tracking status getter.\n\nSummary\n\n| Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetConfigurationType](#classGoogleVR_1_1Beta_1_1GvrControllerInputDeviceExtension_1a113cdd7b6842775099b8cf1bd01e7801)`(this `[GvrControllerInputDevice](/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice)` device)` | [GvrBetaControllerInput.Configuration](/vr/reference/unity/class/GoogleVR/Beta/GvrBetaControllerInput#classGoogleVR_1_1Beta_1_1GvrBetaControllerInput_1afa30349c16464f85732b22c48620d4c3) Gets a controller's configuration type. |\n| [GetTrackingStatusFlags](#classGoogleVR_1_1Beta_1_1GvrControllerInputDeviceExtension_1a8c29f7b5e82ab6d7e79eebffb745ccf8)`(this `[GvrControllerInputDevice](/vr/reference/unity/class/GvrControllerInputDevice#classGvrControllerInputDevice)` device)` | [GvrBetaControllerInput.TrackingStatusFlags](/vr/reference/unity/class/GoogleVR/Beta/GvrBetaControllerInput#classGoogleVR_1_1Beta_1_1GvrBetaControllerInput_1aa7ff58edfe72d2857f70c05c75a8297f) Gets a controller's tracking status. |\n\nPublic static functions \n\nGetConfigurationType \n\n```c#\nGvrBetaControllerInput.Configuration GetConfigurationType(\n this GvrControllerInputDevice device\n)\n``` \nGets a controller's configuration type.\n\nController configuration will only change while the app is paused.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------|---------------------------------------------------------| | `device` | A controller input device to get the configuration for. | |\n| **Returns** | The controller configuration (3DoF or 6DoF). |\n\nGetTrackingStatusFlags \n\n```c#\nGvrBetaControllerInput.TrackingStatusFlags GetTrackingStatusFlags(\n this GvrControllerInputDevice device\n)\n``` \nGets a controller's tracking status.\n\nAlthough `TrackingStatusFlags` values are in practice currently mutually exclusive, returned values should be tested using bitwise tests.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------|-----------------------------------------------------------| | `device` | A controller input device to get the tracking status for. | |\n| **Returns** | A bitwise series of flags representing tracking status. |"]]