Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
oe::ext::vr::TrackedDevice Class Reference

VR Device that can track data (HMD / Controller / Tracker / etc...) More...

#include <OxygenEngine/ext/vr.h>

Public Member Functions

 TrackedDevice (System *parent)
 
bool isValid ()
 Check if device is still available or disconnected / shutdown.
 
std::string getModel ()
 Get the device model.
 
std::string getSerialNumber ()
 Get the device unique serial number.
 
bool isWireless ()
 Check if the device can work without being connected.
 
bool isCharging ()
 Check if the device battery is charging.
 
bool isHmd ()
 
float getBatteryCharge ()
 Get if the device battery level.
 
uint64_t getFirmwareVersion ()
 
int32_t getUsageTimeSinceFirstStarted ()
 

Friends

class System
 
class Overlay
 

Detailed Description

VR Device that can track data (HMD / Controller / Tracker / etc...)

Member Function Documentation

◆ getBatteryCharge()

float oe::ext::vr::TrackedDevice::getBatteryCharge ( )

Get if the device battery level.

Returns
battery level between 0.0f and 1.0f

◆ getModel()

std::string oe::ext::vr::TrackedDevice::getModel ( )

Get the device model.

Model Common name
Knuckles Left Valve Index controller (Left)
Knuckles Right Valve Index controller (Right)
VIVE Tracker 3.0 MV HTC VIVE Tracker 3.0
Valve SR Imp Valve Index lighthouse

◆ isCharging()

bool oe::ext::vr::TrackedDevice::isCharging ( )

Check if the device battery is charging.

Note
The value is meaningful only when isWireless() is true, false always returned otherwise

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