PSMoveSteamVRBridge
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
steamvrbridge::Controller Class Referenceabstract
Inheritance diagram for steamvrbridge::Controller:
Inheritance graph
[legend]
Collaboration diagram for steamvrbridge::Controller:
Collaboration graph
[legend]

Classes

struct  HapticState
 

Public Member Functions

 Controller ()
 Controller Interface.
 
bool CreateButtonComponent (ePSMButtonID button_id)
 
bool CreateAxisComponent (ePSMAxisID axis_id)
 
bool CreateHapticComponent (ePSMHapicID haptic_id)
 
void UpdateButton (ePSMButtonID button_id, PSMButtonState button_state, double time_offset=0.0)
 
void UpdateAxis (ePSMAxisID axis_id, float axis_value, double time_offset=0.0)
 
void UpdateHaptics (const vr::VREvent_HapticVibration_t &hapticData)
 
bool HasButton (ePSMButtonID button_id) const
 
bool HasAxis (ePSMAxisID axis_id) const
 
bool HasHapticState (ePSMHapicID haptic_id) const
 
bool GetButtonState (ePSMButtonID button_id, PSMButtonState &out_button_state) const
 
bool GetAxisState (ePSMAxisID axis_id, float &out_axis_value) const
 
HapticStateGetHapticState (ePSMHapicID haptic_id)
 
virtual const char * GetControllerSettingsPrefix () const =0
 
virtual bool HasPSMControllerId (int ControllerID) const =0
 
virtual const PSMController * GetPSMControllerView () const =0
 
virtual std::string GetPSMControllerSerialNo () const =0
 
virtual PSMControllerType GetPSMControllerType () const =0
 
vr::EVRInitError Activate (vr::TrackedDeviceIndex_t unObjectId) override
 TrackableDevice Interface.
 
void Deactivate () override
 
- Public Member Functions inherited from steamvrbridge::TrackableDevice
virtual void EnterStandby () override
 
virtual void * GetComponent (const char *pchComponentNameAndVersion) override
 
virtual void DebugRequest (const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize) override
 
virtual vr::DriverPose_t GetPose () override
 
virtual vr::ETrackedDeviceClass GetTrackedDeviceClass () const
 
virtual vr::ETrackedControllerRole GetTrackedDeviceRole () const
 
virtual bool IsActivated () const
 
virtual void Update ()
 
virtual void RefreshWorldFromDriverPose ()
 
PSMPosef GetWorldFromDriverPose ()
 
virtual const char * GetSteamVRIdentifier () const
 
virtual const vr::TrackedDeviceIndex_t getTrackedDeviceIndex ()
 
vr::PropertyContainerHandle_t getPropertyContainerHandle () const
 

Protected Member Functions

virtual ControllerConfigAllocateControllerConfig ()
 

Protected Attributes

ControllerConfigm_config
 
- Protected Attributes inherited from steamvrbridge::TrackableDevice
vr::PropertyContainerHandle_t m_ulPropertyContainer
 
std::string m_strSteamVRSerialNo
 
vr::ETrackedControllerRole m_TrackedControllerRole
 
vr::TrackedDeviceIndex_t m_unSteamVRTrackedDeviceId
 
vr::DriverPose_t m_Pose
 
unsigned short m_firmware_revision
 
unsigned short m_hardware_revision
 

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