gramods
|
Analogs tracker reading data off one or more actions in OpenVR. More...
#include <OpenVRAnalogsTracker.hh>
Classes | |
struct | Impl |
Public Member Functions | |
void | setOpenVR (std::shared_ptr< gmCore::OpenVR > openvr) |
Set the OpenVR instance. More... | |
void | addAction (std::string name) |
Add an action to read out data from. More... | |
bool | getAnalogs (AnalogsSample &b) override |
Replaces the contents of p with analog data. More... | |
void | traverse (Visitor *visitor) override |
Propagates the specified visitor. More... | |
![]() | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. More... | |
![]() | |
Object () | |
Initializes internal data. More... | |
virtual | ~Object () |
Cleaning up internal data. More... | |
virtual void | initialize () |
Called to initialize the Object. More... | |
virtual void | accept (Visitor *visitor) |
Calls the visitors apply method with this as argument. More... | |
bool | isInitialized () |
Returns true if the Object is initialized. More... | |
Static Public Attributes | |
static gramods::gmCore::OFactory::OFactoryInformation | _gm_ofi |
Additional Inherited Members | |
![]() | |
typedef std::chrono::steady_clock | clock |
Analogs tracker reading data off one or more actions in OpenVR.
void gramods::gmTrack::OpenVRAnalogsTracker::addAction | ( | std::string | name | ) |
Add an action to read out data from.
The data from all added actions will be concatenated into the resulting sample.
XML-attribute: action
|
overridevirtual |
Replaces the contents of p with analog data.
Implements gramods::gmTrack::AnalogsTracker.
void gramods::gmTrack::OpenVRAnalogsTracker::setOpenVR | ( | std::shared_ptr< gmCore::OpenVR > | openvr | ) |
Set the OpenVR instance.
XML-attribute: openVR
|
overridevirtual |
Propagates the specified visitor.
Reimplemented from gramods::gmCore::Object.