gramods
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
gramods::gmCore::OpenVR::Impl Struct Reference
Inheritance diagram for gramods::gmCore::OpenVR::Impl:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmCore::OpenVR::Impl:
Collaboration graph
[legend]

Public Member Functions

void update (clock::time_point time, size_t frame) override
 Called by updateAll to make the object up-to-date. More...
 
void initialize ()
 
void setup_openvr ()
 
std::optional< OpenVR::pose_list_t > & getPoseList ()
 
std::optional< vr::VRActionHandle_t > getHandle (std::string action)
 
std::optional< vr::InputAnalogActionData_t > getAnalog (std::string action, vr::VRInputValueHandle_t device)
 
std::optional< vr::InputDigitalActionData_t > getDigital (std::string action, vr::VRInputValueHandle_t device)
 
std::string getSerial (size_t idx)
 
- Public Member Functions inherited from gramods::gmCore::Updateable
 Updateable (int priority=0)
 Configures the Updateable properties to the specified priority. More...
 

Public Attributes

vr::IVRSystem * vr = nullptr
 
clock::time_point last_time = clock::time_point::max()
 
std::optional< OpenVR::pose_list_t > cache_poses
 
std::unordered_map< std::string, vr::VRActionHandle_t > action_handles
 
std::unordered_map< size_t, std::string > cache_serial
 
bool use_video = false
 
std::optional< std::filesystem::path > manifest_path
 
std::optional< std::string > action_set
 
std::optional< vr::VRActionSetHandle_t > action_set_handle
 
std::vector< std::weak_ptr< EventConsumer > > event_consumers
 

Static Public Attributes

static bool has_instance = false
 

Additional Inherited Members

- Public Types inherited from gramods::gmCore::Updateable
typedef std::chrono::steady_clock clock
 
- Static Public Member Functions inherited from gramods::gmCore::Updateable
static void updateAll (clock::time_point t=clock::now(), std::optional< size_t > frame=std::nullopt)
 Updates all currently instanciated updateable objects. More...
 

Member Function Documentation

◆ update()

void gramods::gmCore::OpenVR::Impl::update ( clock::time_point  t,
size_t  frame 
)
overridevirtual

Called by updateAll to make the object up-to-date.

Implements gramods::gmCore::Updateable.


The documentation for this struct was generated from the following file: