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.
GvrPointerEventDataExtension
This class extends the Unity PointerEventData
struct with GoogleVR data accessors.
Summary
Public static functions
|
GvrGetButtonsDown(this PointerEventData pointerEventData)
|
GvrControllerButton
Returns the GvrControllerButton mask of buttons that went down to trigger the event.
|
GvrGetControllerInputDevice(this PointerEventData pointerEventData)
|
|
Public static functions
GvrControllerButton GvrGetButtonsDown(
this PointerEventData pointerEventData
)
Returns the GvrControllerButton
mask of buttons that went down to trigger the event.
Details |
Parameters |
pointerEventData
|
Pointer event data.
|
|
Returns
|
The GvrControllerButton mask of buttons that went down to trigger the event.
|
GvrControllerInputDevice GvrGetControllerInputDevice(
this PointerEventData pointerEventData
)
Returns the GvrControllerInputDevice
that triggered the event.
Details |
Parameters |
pointerEventData
|
Pointer event data.
|
|
Returns
|
The get controller input device.
|
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."],[[["The `GvrPointerEventDataExtension` class enhances Unity's `PointerEventData` to include GoogleVR data."],["It provides access to the GoogleVR controller buttons that triggered an event through `GvrGetButtonsDown`."],["It allows retrieval of the specific `GvrControllerInputDevice` associated with an event using `GvrGetControllerInputDevice`."]]],["The `GvrPointerEventDataExtension` class enhances Unity's `PointerEventData` with GoogleVR access. It provides two key functions: `GvrGetButtonsDown` and `GvrGetControllerInputDevice`. `GvrGetButtonsDown` identifies which `GvrControllerButton` caused the event. `GvrGetControllerInputDevice` pinpoints the specific `GvrControllerInputDevice` responsible for triggering the event. Both functions utilize `pointerEventData` to retrieve the needed information. The class effectively extends pointer event data with crucial controller and button details for GoogleVR.\n"]]