3 #include <cgv/gui/key_event.h>
4 #include <cgv/gui/throttle_event.h>
5 #include <cgv/gui/stick_event.h>
6 #include <cgv/gui/pose_event.h>
8 #include <cgv/gui/window.h>
9 #include <cgv/signal/signal.h>
10 #include <cgv/signal/bool_signal.h>
12 #include "lib_begin.h"
38 unsigned char _modifiers = 0,
double _time = 0);
48 void stream_out(std::ostream& os)
const;
50 void stream_in(std::istream& is);
64 float _x,
float _dx,
unsigned _player_index = 0,
unsigned _throttle_index = 0,
double _time = 0);
70 void stream_out(std::ostream& os)
const;
84 StickAction _action,
float _x,
float _y,
float _dx,
float _dy,
85 unsigned _player_index = 0,
unsigned _stick_index = 0,
double _time = 0);
91 void stream_out(std::ostream& os)
const;
105 const float *_pose,
const float *_last_pose,
unsigned short _player_index,
double _time = 0);
111 void stream_out(std::ostream& os)
const;
119 #include <cgv/config/lib_end.h>
StickAction
different actions that a stick can perform
Definition: stick_event.h:15
const vr::vr_kit_state & state
access to current vr state
Definition: vr_events.h:60
vr extension of stick event
Definition: vr_events.h:75
const vr::vr_kit_state & get_state() const
return the state
Definition: vr_events.h:68
vr extension of throttle event
Definition: vr_events.h:55
class to represent all possible keyboard events with the EID_KEY
Definition: key_event.h:23
void * device_handle
store device handle
Definition: vr_events.h:99
void * device_handle
store device handle
Definition: vr_events.h:58
void * get_device_handle() const
return the device id, by default returns 0
Definition: vr_events.h:40
void * device_handle
store device handle
Definition: vr_events.h:78
class to represent events that inform on a change in a one axis controller with the EID_THROTTLE
Definition: throttle_event.h:15
unsigned short player_index
store player index
Definition: vr_events.h:31
unsigned short controller_index
store index of controller (0 .. vr::max_nr_controllers-1), controllers with left and right hand role ...
Definition: vr_events.h:29
KeyAction
different actions that a key can perform
Definition: key_event.h:12
const vr::vr_kit_state & state
access to current vr state
Definition: vr_events.h:33
unsigned get_player_index() const
return player index
Definition: vr_events.h:44
void * get_device_handle() const
return the device id, by default returns 0
Definition: vr_events.h:107
const vr::vr_kit_state & get_state() const
return the state
Definition: vr_events.h:46
vr key events use the key codes defined in vr::VRKeys
Definition: vr_events.h:24
void * get_device_handle() const
return the device id, by default returns 0
Definition: vr_events.h:66
void * device_handle
store device handle
Definition: vr_events.h:27
unsigned get_controller_index() const
return controller index (0 .. vr::max_nr_controllers-1), controllers with left and right hand role ar...
Definition: vr_events.h:42
const vr::vr_kit_state & get_state() const
return the state
Definition: vr_events.h:109
@ KA_PRESS
key press action
Definition: key_event.h:14
class to represent all pose events from tracking systems with the EID_POSE
Definition: pose_event.h:16
structure that stores all information describing the state of a VR kit
Definition: vr_state.h:139
const vr::vr_kit_state & state
access to current vr state
Definition: vr_events.h:101
void * get_device_handle() const
return the device id, by default returns 0
Definition: vr_events.h:87
class to represent stick events with the EID_STICK
Definition: stick_event.h:29
const vr::vr_kit_state & state
access to current vr state
Definition: vr_events.h:80
vr extension of pose events
Definition: vr_events.h:96
the cgv namespace
Definition: vr_calib.cxx:9
const vr::vr_kit_state & get_state() const
return the state
Definition: vr_events.h:89