33 key_event(
unsigned short _key = 0,
KeyAction _action =
KA_PRESS,
unsigned char _char = 0,
unsigned char _modifiers = 0,
unsigned char _toggle_keys = 0,
double _time = 0);
35 void stream_out(std::ostream& os)
const;
37 void stream_in(std::istream& is);
39 unsigned short get_key()
const;
41 void set_key(
unsigned short _key);
47 unsigned char get_char()
const;
49 void set_char(
unsigned char _char);
55 #include <cgv/config/lib_end.h>
unsigned short key
store the pressed key
Definition: key_event.h:26
class to represent all possible keyboard events with the EID_KEY
Definition: key_event.h:23
@ KA_RELEASE
key release action
Definition: key_event.h:13
unsigned char character
store the corresponding ascii character
Definition: key_event.h:30
KeyAction
different actions that a key can perform
Definition: key_event.h:12
@ KA_REPEAT
key repeated press action
Definition: key_event.h:15
unsigned char action
store whether
Definition: key_event.h:28
@ KA_PRESS
key press action
Definition: key_event.h:14
std::string get_key_action_string(KeyAction action)
convert a key action into a readable string
Definition: key_event.cxx:9
the cgv namespace
Definition: vr_calib.cxx:9