SDK DOCUMENTATION
Varjo_events.h File Reference

Go to the source code of this file.

Data Structures

struct  varjo_EventHeader
 
struct  varjo_EventVisibility
 
struct  varjo_EventButton
 
struct  varjo_EventTrackingStatus
 
struct  varjo_EventHeadsetStatus
 
struct  varjo_EventForeground
 
struct  varjo_EventHeadsetStandbyStatus
 
struct  varjo_EventDisplayStatus
 
union  varjo_EventData
 
struct  varjo_Event
 Event struct used for all the events by the event system. More...
 

Macros

#define VARJO_LAST_EVENT   varjo_EventType_Foreground
 

Typedefs

typedef int64_t varjo_EventType
 
typedef int8_t varjo_ButtonId
 
typedef int64_t varjo_TrackingStatus
 
typedef int64_t varjo_HeadsetStatus
 
typedef int64_t varjo_DisplayStatus
 

Variables

static const varjo_EventType varjo_EventType_Visibility = 0x1
 Visibility event received when application being shown / hidden. More...
 
static const varjo_EventType varjo_EventType_Button = 0x2
 Button event that is received when a button is pressed or released. More...
 
static const varjo_EventType varjo_EventType_TrackingStatus = 0x3
 Event that is received when there's a change in positional tracking state. More...
 
static const varjo_EventType varjo_EventType_HeadsetStatus = 0x4
 Event for headset connection and disconnection. More...
 
static const varjo_EventType varjo_EventType_DisplayStatus = 0x5
 Event for changes in headset display connections. Eg. if cables are unplugged. More...
 
static const varjo_EventType varjo_EventType_HeadsetStandbyStatus = 0x6
 Event for changes in headset standby status. More...
 
static const varjo_EventType varjo_EventType_Foreground = 0x7
 Event for when application goes to background or foreground. More...
 
static const varjo_ButtonId varjo_ButtonId_Application = 0
 Button ID for application button on the headset. More...
 
static const varjo_TrackingStatus varjo_TrackingStatus_Ok = 0x0
 Tracking is ok. More...
 
static const varjo_TrackingStatus varjo_TrackingStatus_Lost = 0x1
 No tracking data available. More...
 
static const varjo_TrackingStatus varjo_TrackingStatus_Disconnected = 0x2
 Tracking disconnected. More...
 
static const varjo_HeadsetStatus varjo_HeadsetStatus_Connected = 0x1
 Headset is connected. More...
 
static const varjo_HeadsetStatus varjo_HeadsetStatus_Disconnected = 0x2
 Headset is disconnected. More...
 
static const varjo_DisplayStatus varjo_DisplayStatus_ContextNotFound = 0x1
 Context display is not found. More...
 
static const varjo_DisplayStatus varjo_DisplayStatus_FocusNotFound = 0x2
 Foxus display is not found. More...
 
static const varjo_DisplayStatus varjo_DisplayStatus_AllDisplaysFound = 0x4
 All displays found. More...
 

Data Structure Documentation

◆ varjo_EventHeader

struct varjo_EventHeader
Data Fields
int64_t timestamp Timestamp of the time when the event was issued.
varjo_EventType type Type of the event.

◆ varjo_EventVisibility

struct varjo_EventVisibility
Data Fields
varjo_Bool visible Current visibility.

◆ varjo_EventButton

struct varjo_EventButton
Data Fields
varjo_ButtonId buttonId Id of the button.
varjo_Bool pressed Is the button pressed down.

◆ varjo_EventTrackingStatus

struct varjo_EventTrackingStatus
Data Fields
varjo_TrackingStatus status Current tracking status.

◆ varjo_EventHeadsetStatus

struct varjo_EventHeadsetStatus
Data Fields
varjo_HeadsetStatus status Current headset status.

◆ varjo_EventForeground

struct varjo_EventForeground
Data Fields
varjo_Bool isForeground Is the session on foreground.

◆ varjo_EventHeadsetStandbyStatus

struct varjo_EventHeadsetStandbyStatus
Data Fields
varjo_Bool onStandby Is the headset on standby.

◆ varjo_EventDisplayStatus

struct varjo_EventDisplayStatus
Data Fields
varjo_DisplayStatus status Current display status.

◆ varjo_EventData

union varjo_EventData
Data Fields
struct varjo_EventButton button Button event data.
struct varjo_EventDisplayStatus displayStatus Display status event data.
struct varjo_EventForeground foreground Foreground status event data.
struct varjo_EventHeadsetStandbyStatus headsetStandbyStatus Headset standby status event data.
struct varjo_EventHeadsetStatus headsetStatus Headset status event data.
struct varjo_EventTrackingStatus trackingStatus Tracking status event data.
struct varjo_EventVisibility visibility Visibility event data.

◆ varjo_Event

struct varjo_Event

Event struct used for all the events by the event system.

Data Fields
union varjo_EventData data Event data.
struct varjo_EventHeader header Event header.

Macro Definition Documentation

◆ VARJO_LAST_EVENT

#define VARJO_LAST_EVENT   varjo_EventType_Foreground

Typedef Documentation

◆ varjo_ButtonId

typedef int8_t varjo_ButtonId

◆ varjo_DisplayStatus

typedef int64_t varjo_DisplayStatus

◆ varjo_EventType

typedef int64_t varjo_EventType

◆ varjo_HeadsetStatus

typedef int64_t varjo_HeadsetStatus

◆ varjo_TrackingStatus

typedef int64_t varjo_TrackingStatus

Variable Documentation

◆ varjo_ButtonId_Application

const varjo_ButtonId varjo_ButtonId_Application = 0
static

Button ID for application button on the headset.

◆ varjo_DisplayStatus_AllDisplaysFound

const varjo_DisplayStatus varjo_DisplayStatus_AllDisplaysFound = 0x4
static

All displays found.

◆ varjo_DisplayStatus_ContextNotFound

const varjo_DisplayStatus varjo_DisplayStatus_ContextNotFound = 0x1
static

Context display is not found.

◆ varjo_DisplayStatus_FocusNotFound

const varjo_DisplayStatus varjo_DisplayStatus_FocusNotFound = 0x2
static

Foxus display is not found.

◆ varjo_EventType_Button

const varjo_EventType varjo_EventType_Button = 0x2
static

Button event that is received when a button is pressed or released.

◆ varjo_EventType_DisplayStatus

const varjo_EventType varjo_EventType_DisplayStatus = 0x5
static

Event for changes in headset display connections. Eg. if cables are unplugged.

◆ varjo_EventType_Foreground

const varjo_EventType varjo_EventType_Foreground = 0x7
static

Event for when application goes to background or foreground.

◆ varjo_EventType_HeadsetStandbyStatus

const varjo_EventType varjo_EventType_HeadsetStandbyStatus = 0x6
static

Event for changes in headset standby status.

◆ varjo_EventType_HeadsetStatus

const varjo_EventType varjo_EventType_HeadsetStatus = 0x4
static

Event for headset connection and disconnection.

◆ varjo_EventType_TrackingStatus

const varjo_EventType varjo_EventType_TrackingStatus = 0x3
static

Event that is received when there's a change in positional tracking state.

◆ varjo_EventType_Visibility

const varjo_EventType varjo_EventType_Visibility = 0x1
static

Visibility event received when application being shown / hidden.

◆ varjo_HeadsetStatus_Connected

const varjo_HeadsetStatus varjo_HeadsetStatus_Connected = 0x1
static

Headset is connected.

◆ varjo_HeadsetStatus_Disconnected

const varjo_HeadsetStatus varjo_HeadsetStatus_Disconnected = 0x2
static

Headset is disconnected.

◆ varjo_TrackingStatus_Disconnected

const varjo_TrackingStatus varjo_TrackingStatus_Disconnected = 0x2
static

Tracking disconnected.

◆ varjo_TrackingStatus_Lost

const varjo_TrackingStatus varjo_TrackingStatus_Lost = 0x1
static

No tracking data available.

◆ varjo_TrackingStatus_Ok

const varjo_TrackingStatus varjo_TrackingStatus_Ok = 0x0
static

Tracking is ok.