gvr:: ControllerState
#include <gvr_controller.h>
Convenience C++ wrapper for the opaque gvr_controller_state type.
Summary
See the gvr_controller_state functions for more information.
Inheritance
Inherits from: gvr::WrapperBase< gvr_controller_state, gvr_controller_state_destroy >
Constructors and Destructors |
|
---|---|
ControllerState()
|
Public functions
ControllerState
ControllerState()
GetApiStatus
ControllerApiStatus GetApiStatus() const
For more information, see gvr_controller_state_get_api_status().
GetBatteryCharging
bool GetBatteryCharging() const
For more information, see gvr_controller_state_get_battery_charging.
GetBatteryLevel
ControllerBatteryLevel GetBatteryLevel() const
For more information, see gvr_controller_state_get_battery_level.
GetButtonDown
bool GetButtonDown( ControllerButton button ) const
For more information, see gvr_controller_state_get_button_down().
GetButtonState
bool GetButtonState( ControllerButton button ) const
For more information, see gvr_controller_state_get_button_state().
GetButtonUp
bool GetButtonUp( ControllerButton button ) const
For more information, see gvr_controller_state_get_button_up().
GetConnectionState
ControllerConnectionState GetConnectionState() const
For more information, see gvr_controller_state_get_connection_state().
GetLastAccelTimestamp
int64_t GetLastAccelTimestamp() const
For more information, see gvr_controller_state_get_last_accel_timestamp().
GetLastBatteryTimestamp
int64_t GetLastBatteryTimestamp() const
For more information, see gvr_controller_state_get_last_battery_timestamp.
GetLastButtonTimestamp
int64_t GetLastButtonTimestamp() const
For more information, see gvr_controller_state_get_last_button_timestamp().
GetLastGyroTimestamp
int64_t GetLastGyroTimestamp() const
For more information, see gvr_controller_state_get_last_gyro_timestamp().
GetLastOrientationTimestamp
int64_t GetLastOrientationTimestamp() const
For more information, see gvr_controller_state_get_last_orientation_timestamp().
GetLastPositionTimestamp
int64_t GetLastPositionTimestamp() const
For more information, see gvr_controller_state_get_last_position_timestamp().
GetLastTouchTimestamp
int64_t GetLastTouchTimestamp() const
For more information, see gvr_controller_state_get_last_touch_timestamp().
GetOrientation
gvr_quatf GetOrientation() const
For more information, see gvr_controller_state_get_orientation().
GetPosition
gvr_vec3f GetPosition() const
For more information, see gvr_controller_state_get_position().
GetRecentered
bool GetRecentered() const
For more information, see gvr_controller_state_get_recentered().
GetRecentering
bool GetRecentering() const
For more information, see gvr_controller_state_get_recentering().
GetTouchDown
bool GetTouchDown() const
For more information, see gvr_controller_state_get_touch_down().
GetTouchPos
gvr_vec2f GetTouchPos() const
For more information, see gvr_controller_state_get_touch_pos().
Update
void Update( const ControllerApi & api )
For more information, see gvr_controller_state_update().
Update
void Update( const ControllerApi & api, int32_t controller_index )
For more information, see gvr_controller_state_update().