132 void put_ray(
float* ray_origin,
float* ray_direction)
const;
158#include <cgv/config/lib_end.h>
the vr namespace for virtual reality support
VRButtonStateFlags
one flag for each vr controller button
@ VRF_INPUT0
button of input 0
@ VRF_MENU
application menu button
@ VRF_DPAD_LEFT
direction pad left button
@ VRF_INPUT1_TOUCH
touch sensor for input 1 which often is touchpad or stick
@ VRF_DPAD_RIGHT
direction pad right button
@ VRF_INPUT3_TOUCH
touch sensor for input 3 which often is touchpad or stick
@ VRF_DPAD_UP
direction pad up button
@ VRF_INPUT1
button of input 1
@ VRF_SYSTEM
system button
@ VRF_PROXIMITY
proximity sensor
@ VRF_INPUT4_TOUCH
touch sensor for input 4 which often is touchpad or stick
@ VRF_INPUT0_TOUCH
touch sensor for input 0 which often is touchpad or stick
@ VRF_INPUT2
button of input 2
@ VRF_INPUT2_TOUCH
touch sensor for input 2 which often is touchpad or stick
@ VRF_INPUT4
button of input 4
@ VRF_DPAD_DOWN
direction pad down button
@ VRF_INPUT3
button of input 3
std::string get_key_string(unsigned short key)
convert key to string
std::string get_status_string(VRStatus status)
convert flags to string
const unsigned max_nr_controller_axes
maximum number of axes per controller
VRStatus
different status values for a trackable
@ VRS_TRACKED
trackable is connected and tracked
@ VRS_ATTACHED
trackable is connected via wireless but not tracked
@ VRS_DETACHED
trackable is not reachable via wireless
const unsigned max_nr_controllers
maximum number of attachable controller and tracker devices
std::string get_state_flag_string(VRButtonStateFlags flags)
convert flags to string
KeyAction
repeated definition from cgv/gui/key_event.h
const unsigned max_nr_controller_inputs
maximum number of inputs per controller
VRKeys
enumerate all VR keys starting at 1024
@ VR_DPAD_UP_LEFT
direction pad diagonally up and left
@ VR_DPAD_DOWN_LEFT
direction pad diagonally down and left
@ VR_DPAD_DOWN_RIGHT
direction pad diagonally down and right
@ VR_INPUT3_TOUCH
touched input 3
@ VR_PROXIMITY
proximity sensor
@ VR_DPAD_RIGHT
direction pad right
@ VR_INPUT2_TOUCH
touched input 2
@ VR_INPUT1_TOUCH
touched input 1
@ VR_DPAD_UP_RIGHT
direction pad diagonally up and right
@ VR_BEGIN
begin marker used in for loops over all VR keys
@ VR_DPAD_LEFT
direction pad left
@ VR_MENU
VIVE: menu button; occulus: start button.
@ VR_END
end marker used in for loops over all VR keys
@ VR_DPAD_DOWN
direction pad down
@ VR_INPUT0_TOUCH
touched input 0
@ VR_DPAD_UP
direction pad up
@ VR_INPUT4_TOUCH
touched input 4
@ VR_SYSTEM
VIVE: system button; occulus: ???
Extends the trackable state by information on the buttons, input axes and vibration strengths.
unsigned time_stamp
a unique time stamp for fast test whether state changed
unsigned button_flags
combination of flags in VRButtonStateFlags combined with the OR operation
structure that stores all information describing the state of a VR kit
vr_trackable_state hmd
status and pose of hmd
a trackable knows whether it is tracked and its 6d pose stored as 3x4 matrix in column major format
VRStatus status
whether trackable is currently tracked, only in case of true, the pose member contains useful informa...