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>
49 unsigned short _key = 0,
KeyAction _action = KA_PRESS,
unsigned char _char = 0,
50 unsigned char _modifiers = 0,
double _time = 0);
58 void stream_out(std::ostream& os)
const;
60 void stream_in(std::istream& is);
69 float _x,
float _dx,
unsigned _player_index = 0,
unsigned _throttle_index = 0,
double _time = 0);
73 void stream_out(std::ostream& os)
const;
82 StickAction _action,
float _x,
float _y,
float _dx,
float _dy,
83 unsigned _player_index = 0,
unsigned _stick_index = 0,
double _time = 0);
87 void stream_out(std::ostream& os)
const;
96 const float *_pose,
const float *_last_pose,
unsigned short _player_index,
double _time = 0);
100 void stream_out(std::ostream& os)
const;
108#include <cgv/config/lib_end.h>
class to represent all possible keyboard events with the EID_KEY
class to represent all pose events from tracking systems with the EID_POSE
class to represent stick events with the EID_STICK
class to represent events that inform on a change in a one axis controller with the EID_THROTTLE
interface common to vr events
const vr::vr_kit_state & state
access to current vr state
void * get_device_handle() const
return the device id, by default returns 0
void * device_handle
store device handle
const vr::vr_kit_state & get_state() const
return the state of vr kit
vr key events use the key codes defined in vr::VRKeys
unsigned get_player_index() const
return player index
void * get_device_id() const
return the device id, by default returns 0
unsigned short controller_index
store index of controller (0 .. vr::max_nr_controllers-1), controllers with left and right hand role ...
unsigned short player_index
store player index
unsigned get_controller_index() const
return controller index (0 .. vr::max_nr_controllers-1), controllers with left and right hand role ar...
vr extension of pose events
void * get_device_id() const
return the device id, by default returns 0
vr extension of stick event
void * get_device_id() const
return the device id, by default returns 0
vr extension of throttle event
void * get_device_id() const
return the device id, by default returns 0
KeyAction
different actions that a key can perform
StickAction
different actions that a stick can perform
structure that stores all information describing the state of a VR kit
defines types to store the state vr::vr_kit_state of a vr kit, which is split into sub states for the...