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.
GvrControllerVisual.ControllerDisplayState
The controller display state data structure.
Summary
Public attributes
|
appButton
|
bool
True if the app button is down.
|
batteryCharging
|
bool
True if the battery is charging.
|
batteryLevel
|
GvrControllerBatteryLevel
The battery charge level.
|
clickButton
|
bool
True if the touch pad button is down.
|
homeButton
|
bool
True if the system button is down.
|
touchPos
|
Vector2
The touch position on the touch pad (if touching is true ).
|
touching
|
bool
True if the controller touch pad is registering a touch.
|
Public attributes
bool GvrControllerVisual::ControllerDisplayState::appButton
True if the app button is down.
batteryCharging
bool GvrControllerVisual::ControllerDisplayState::batteryCharging
True if the battery is charging.
batteryLevel
GvrControllerBatteryLevel GvrControllerVisual::ControllerDisplayState::batteryLevel
The battery charge level.
bool GvrControllerVisual::ControllerDisplayState::clickButton
True if the touch pad button is down.
bool GvrControllerVisual::ControllerDisplayState::homeButton
True if the system button is down.
touchPos
Vector2 GvrControllerVisual::ControllerDisplayState::touchPos
The touch position on the touch pad (if touching
is true
).
touching
bool GvrControllerVisual::ControllerDisplayState::touching
True if the controller touch pad is registering a touch.
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\u003e\u003ccode\u003eGvrControllerVisual.ControllerDisplayState\u003c/code\u003e stores the current state of the controller, including button presses and touch interactions.\u003c/p\u003e\n"],["\u003cp\u003eIt provides boolean values indicating whether the app button, click button, and home button are pressed.\u003c/p\u003e\n"],["\u003cp\u003eTouchpad interactions are tracked with \u003ccode\u003etouchPos\u003c/code\u003e (touch position) and \u003ccode\u003etouching\u003c/code\u003e (whether the touchpad is being touched).\u003c/p\u003e\n"],["\u003cp\u003eBattery status is available via \u003ccode\u003ebatteryLevel\u003c/code\u003e and \u003ccode\u003ebatteryCharging\u003c/code\u003e, indicating charge level and charging status.\u003c/p\u003e\n"]]],["The `ControllerDisplayState` structure provides information about the controller's current state. Key details include: booleans for `appButton`, `batteryCharging`, `clickButton`, `homeButton`, and `touching` status (if they are down or active). It also presents `batteryLevel` which represents the battery charge, and `touchPos`, a vector indicating the touch position on the touch pad, when touched.\n"],null,["GvrControllerVisual.ControllerDisplayState\n\nThe controller display state data structure.\n\nSummary\n\n| Public attributes ||\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| [appButton](#structGvrControllerVisual_1_1ControllerDisplayState_1a0525475f3e6ce2edcd2d277be813f372) | `bool` True if the app button is down. |\n| [batteryCharging](#structGvrControllerVisual_1_1ControllerDisplayState_1a70820f60b46a0d4920e9ad3ae45788c3) | `bool` True if the battery is charging. |\n| [batteryLevel](#structGvrControllerVisual_1_1ControllerDisplayState_1a4c8dbcbe17cea7c3c77f8e7da0635882) | `GvrControllerBatteryLevel` The battery charge level. |\n| [clickButton](#structGvrControllerVisual_1_1ControllerDisplayState_1a5f7a697bf79d58cc258fdf0d35cf0fe3) | `bool` True if the touch pad button is down. |\n| [homeButton](#structGvrControllerVisual_1_1ControllerDisplayState_1ad1df09d56d9224a32b11bb9bceba9ab8) | `bool` True if the system button is down. |\n| [touchPos](#structGvrControllerVisual_1_1ControllerDisplayState_1a9969428d7765fd4a635af7f620ec767c) | `Vector2` The touch position on the touch pad (if `touching` is `true`). |\n| [touching](#structGvrControllerVisual_1_1ControllerDisplayState_1ad07f25a346920fefd447b69be0238c6a) | `bool` True if the controller touch pad is registering a touch. |\n\nPublic attributes \n\nappButton \n\n```c#\nbool GvrControllerVisual::ControllerDisplayState::appButton\n``` \nTrue if the app button is down. \n\nbatteryCharging \n\n```c#\nbool GvrControllerVisual::ControllerDisplayState::batteryCharging\n``` \nTrue if the battery is charging. \n\nbatteryLevel \n\n```c#\nGvrControllerBatteryLevel GvrControllerVisual::ControllerDisplayState::batteryLevel\n``` \nThe battery charge level. \n\nclickButton \n\n```c#\nbool GvrControllerVisual::ControllerDisplayState::clickButton\n``` \nTrue if the touch pad button is down. \n\nhomeButton \n\n```c#\nbool GvrControllerVisual::ControllerDisplayState::homeButton\n``` \nTrue if the system button is down. \n\ntouchPos \n\n```c#\nVector2 GvrControllerVisual::ControllerDisplayState::touchPos\n``` \nThe touch position on the touch pad (if `touching` is `true`). \n\ntouching \n\n```c#\nbool GvrControllerVisual::ControllerDisplayState::touching\n``` \nTrue if the controller touch pad is registering a touch."]]