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>
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
pose_event(const float *_pose, const float *_last_pose, unsigned short _player_index, short _trackable_index=0, double _time=0)
construct a key event from its textual description
stick_event(StickAction _action, float _x, float _y, float _dx, float _dy, unsigned _player_index=0, unsigned _controller_index=0, unsigned _stick_index=0, double _time=0)
construct a key event from its textual description
throttle_event(float _x, float _dx, unsigned _player_index=0, unsigned _controller_index=0, unsigned _throttle_index=0, double _time=0)
construct a throttle event from value and value change
const vr::vr_kit_state & state
access to current vr state
void * get_device_handle() const
return the device id, by default returns 0
vr_event_extension(void *_device_handle, const vr::vr_kit_state &_state)
construct extension from device handle and vr state
void * device_handle
store device handle
const vr::vr_kit_state & get_state() const
return the state of vr kit
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 ...
vr_key_event(void *_device_handle, unsigned _player_index, unsigned _controller_index, const vr::vr_kit_state &_state, unsigned short _key=0, KeyAction _action=KA_PRESS, unsigned char _char=0, unsigned char _modifiers=0, double _time=0)
construct a key event from given parameters
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...
void * get_device_id() const
return the device id, by default returns 0
vr_pose_event(void *_device_handle, short _trackable_index, const vr::vr_kit_state &_state, const float *_pose, const float *_last_pose, unsigned short _player_index, double _time=0)
construct a pose event from given parameters
void * get_device_id() const
return the device id, by default returns 0
vr_stick_event(void *_device_handle, unsigned _controller_index, const vr::vr_kit_state &_state, StickAction _action, float _x, float _y, float _dx, float _dy, unsigned _player_index=0, unsigned _stick_index=0, double _time=0)
construct stick event from given parameters
void * get_device_id() const
return the device id, by default returns 0
vr_throttle_event(void *_device_handle, unsigned _controller_index, const vr::vr_kit_state &_state, float _x, float _dx, unsigned _player_index=0, unsigned _throttle_index=0, double _time=0)
construct a throttle event from value and value change
namespace that holds the abstract gui interface
KeyAction
different actions that a key can perform
@ KA_PRESS
key press action
StickAction
different actions that a stick can perform
this header is dependency free
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...