cgv
Loading...
Searching...
No Matches
cgv::gui::vr_event_extension Class Reference

interface common to vr events More...

#include <vr_events.h>

Inheritance diagram for cgv::gui::vr_event_extension:
cgv::gui::vr_key_event cgv::gui::vr_pose_event cgv::gui::vr_stick_event cgv::gui::vr_throttle_event

Public Member Functions

 vr_event_extension (void *_device_handle, const vr::vr_kit_state &_state)
 construct extension from device handle and vr state
 
void * get_device_handle () const
 return the device id, by default returns 0
 
const vr::vr_kit_stateget_state () const
 return the state of vr kit
 

Protected Attributes

void * device_handle
 store device handle
 
const vr::vr_kit_statestate
 access to current vr state
 

Detailed Description

interface common to vr events

Definition at line 23 of file vr_events.h.

Constructor & Destructor Documentation

◆ vr_event_extension()

cgv::gui::vr_event_extension::vr_event_extension ( void *  _device_handle,
const vr::vr_kit_state _state 
)

construct extension from device handle and vr state

Definition at line 7 of file vr_events.cxx.

Member Function Documentation

◆ get_device_handle()

void * cgv::gui::vr_event_extension::get_device_handle ( ) const
inline

return the device id, by default returns 0

Definition at line 34 of file vr_events.h.

◆ get_state()

const vr::vr_kit_state & cgv::gui::vr_event_extension::get_state ( ) const
inline

return the state of vr kit

Definition at line 36 of file vr_events.h.

Referenced by vr_test::handle().

Member Data Documentation

◆ device_handle

void* cgv::gui::vr_event_extension::device_handle
protected

◆ state

const vr::vr_kit_state& cgv::gui::vr_event_extension::state
protected

access to current vr state

Definition at line 29 of file vr_events.h.


The documentation for this class was generated from the following files: