|
cgv
|
vr extension of throttle event More...
#include <vr_events.h>
Public Member Functions | |
| 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 | |
| void * | get_device_handle () const |
| return the device id, by default returns 0 | |
| const vr::vr_kit_state & | get_state () const |
| return the state | |
| void | stream_out (std::ostream &os) const |
| write to stream | |
| unsigned | get_player_index () const |
| return player index | |
| unsigned | get_controller_index () const |
| return controller index | |
| unsigned | get_throttle_index () const |
| return throttle index More... | |
| void | stream_in (std::istream &is) |
| read from stream | |
| float | get_value () const |
| return the current value of the throttle | |
| float | get_value_change () const |
| return the change of value of the throttle | |
| float | get_last_value () const |
| return the last value of the throttle | |
| virtual void * | get_device_id () const |
| return the device id, by default returns 0 | |
| void | set_kind (unsigned char _kind) |
| set the kind of the event | |
| unsigned | get_kind () const |
| return, what kind of event this is, typically a value from the EventId enum | |
| void | set_flags (unsigned char _flags) |
| set the event flags More... | |
| unsigned | get_flags () const |
| return the event flags | |
| void | set_modifiers (unsigned char _modifiers) |
| set the modifiers | |
| unsigned char | get_modifiers () const |
| return the active modifiers as values from EventModifier combined with a logical or-operation | |
| void | set_toggle_keys (unsigned char _toggle_keys) |
| set the state of the toggle keys | |
| unsigned char | get_toggle_keys () const |
| return the state of the toggle keys as values from EventToggleKeys combined with a logical or-operation | |
| void | set_time (const double &_time) |
| set the time of the event | |
| double | get_time () const |
| return the time of the event in seconds | |
Protected Attributes | |
| void * | device_handle |
| store device handle | |
| const vr::vr_kit_state & | state |
| access to current vr state | |
| unsigned char | kind |
| store which kind of event we have | |
| unsigned char | flags |
| store event flags | |
| unsigned char | modifiers |
| store the active modifiers | |
| unsigned char | toggle_keys |
| store the active toggle keys | |
| double | time |
| store the time of the event in seconds | |
vr extension of throttle event
|
inherited |
return throttle index
return stick index
|
inherited |
set the event flags
return the set the event flags