cgv
|
information provided for controller devices More...
#include <vr_info.h>
Public Member Functions | |
vr_controller_info () | |
construct with default | |
Public Attributes | |
VRControllerType | type |
controller type | |
VRControllerRole | role |
controller role | |
int32_t | nr_inputs |
number of used inputs | |
VRInputType | input_type [max_nr_controller_inputs] |
type of up to 5vr::max_nr_controller_inputs inputs built into the controller | |
int32_t | nr_axes |
total number of axes provided by all inputs | |
VRAxisType | axis_type [max_nr_controller_axes] |
axis type for each of the vr::max_nr_controller_axes axes in the state More... | |
VRButtonStateFlags | supported_buttons |
one flag per button telling whether it is supported | |
std::string | device_type |
type name of device | |
int32_t | device_class |
index of device class | |
bool | is_wireless |
whether device is wireless | |
bool | provides_battery_charge_level |
whether one can query battery charge level | |
float | battery_charge_level |
battery charge level in percentage (0 .. empty, 1 .. full) | |
bool | has_proximity_sensor |
whether device has proximity sensor | |
std::string | serial_number |
unique identifier of device | |
std::string | model_number |
number describing the device type | |
std::map< std::string, std::string > | variable_parameters |
a map from parameter name to parameter value used for all device parameters that are not explicitly defined | |
information provided for controller devices
VRAxisType vr::vr_controller_info::axis_type[max_nr_controller_axes] |
axis type for each of the vr::max_nr_controller_axes
axes in the state
axes are enumerated in the order of the inputs. Typically, the first is a 2d input (pad or stick) with the corresponding axes indexed with 0 and 1. The first axis of the second input is in this case 2.