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.
gvr_event
#include <gvr_types.h>
Container for various GVR-events to which the client can optionally respond.
Summary
Public attributes
@6
union gvr_event::@5 gvr_event::@6
flags
gvr_flags gvr_event::flags
padding
uint8_t gvr_event::padding[496]
type
int32_t gvr_event::type
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\u003egvr_event\u003c/code\u003e is a container for various Google VR events that client applications can respond to.\u003c/p\u003e\n"],["\u003cp\u003eIt includes information about the event type, timestamp, and any associated data (e.g., re-centering data).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use \u003ccode\u003egvr_event\u003c/code\u003e to handle events like re-centering, allowing them to build interactive VR experiences.\u003c/p\u003e\n"],["\u003cp\u003eThe struct contains public attributes like \u003ccode\u003eflags\u003c/code\u003e, \u003ccode\u003epadding\u003c/code\u003e, \u003ccode\u003erecenter_event_data\u003c/code\u003e, \u003ccode\u003etimestamp\u003c/code\u003e, and \u003ccode\u003etype\u003c/code\u003e for accessing event details.\u003c/p\u003e\n"]]],["The `gvr_event` structure acts as a container for GVR events, allowing client responses. It stores event-specific data, including: a union for various event types (`@6`), event flags (`flags`), a 496-byte padding array (`padding`), recentering data (`recenter_event_data`), an event timestamp (`timestamp`), and an integer representing the event's type (`type`). These attributes collectively provide a structured way to manage and interpret GVR events.\n"],null,["# gvr_event Struct Reference\n\ngvr_event\n=========\n\n`#include \u003cgvr_types.h\u003e`\n\nContainer for various GVR-events to which the client can optionally respond.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [@6](#structgvr__event_1ac33ddc487e88d39d3085ac2ed635ab9d) | `union gvr_event::@5` |\n| [flags](#structgvr__event_1a40344e506263bb1b3b8b15b058774088) | `gvr_flags` |\n| [padding](#structgvr__event_1a1fcb0cecbe9caaa37317fc83fe4710f1)`[496]` | `uint8_t` |\n| [recenter_event_data](#structgvr__event_1ac5e813190ec7ef26006d3d1e7536b4d9) | [gvr_recenter_event_data](/vr/reference/ios-ndk/struct/gvr-recenter-event-data#structgvr__recenter__event__data) |\n| [timestamp](#structgvr__event_1af317e12272cfe37b6b92d4148b188690) | [gvr_clock_time_point](/vr/reference/ios-ndk/struct/gvr-clock-time-point#structgvr__clock__time__point) |\n| [type](#structgvr__event_1a58bf4fc6801e1d7bd35da5167d471844) | `int32_t` |\n\nPublic attributes\n-----------------\n\n### @6\n\n```objective-c\nunion gvr_event::@5 gvr_event::@6\n``` \n\n### flags\n\n```scdoc\ngvr_flags gvr_event::flags\n``` \n\n### padding\n\n```scdoc\nuint8_t gvr_event::padding[496]\n``` \n\n### recenter_event_data\n\n```scdoc\ngvr_recenter_event_data gvr_event::recenter_event_data\n``` \n\n### timestamp\n\n```scdoc\ngvr_clock_time_point gvr_event::timestamp\n``` \n\n### type\n\n```carbon\nint32_t gvr_event::type\n```"]]