Input event class. More...
#include <input_event.h>
Public Types | |
enum | Type { no_key = 0, pressed = 1, released = 2, doubleclick = 3, pointer_moved = 4, axis_moved = 5, proximity_change = 6 } |
Event types. More... | |
Public Member Functions | |
InputEvent () | |
Constructs a 'NoKey' key. More... | |
~InputEvent () | |
Public Attributes | |
bool | alt |
State of modifier keys. More... | |
double | axis_pos |
Axis position. More... | |
bool | ctrl |
InputDevice | device |
Device that event originates from. More... | |
InputCode | id |
The exact input. More... | |
int | id_offset |
Contains the value (0 to x) for certains InputCode types that have a variable output identifier (for example, joystick button identifers, or joystick axis...) More... | |
Point | mouse_device_pos |
Mouse actual position at event time. More... | |
Pointf | mouse_pos |
Mouse position at event time. More... | |
int | repeat_count |
The repeat count for this event. Contains the number of times the keystroke has auto-repeated as a result of the user holding down the key. More... | |
bool | shift |
std::string | str |
Character sequence generated by event. A key press can generate one, none or multiple characters. The reason for this are deadkeys, i.e. press ^ + a and get ^; the first press would generate no key and the second one, in case that the second key being pressed doesn't support the ^ it would generate two characters (i.e. ^ + 5 => "", "^5") More... | |
Type | type |
Event type. More... | |
Input event class.
clan::InputEvent::InputEvent | ( | ) |
Constructs a 'NoKey' key.
clan::InputEvent::~InputEvent | ( | ) |
bool clan::InputEvent::alt |
State of modifier keys.
double clan::InputEvent::axis_pos |
Axis position.
bool clan::InputEvent::ctrl |
InputDevice clan::InputEvent::device |
Device that event originates from.
InputCode clan::InputEvent::id |
The exact input.
int clan::InputEvent::id_offset |
Contains the value (0 to x) for certains InputCode types that have a variable output identifier (for example, joystick button identifers, or joystick axis...)
Point clan::InputEvent::mouse_device_pos |
Mouse actual position at event time.
Pointf clan::InputEvent::mouse_pos |
Mouse position at event time.
int clan::InputEvent::repeat_count |
The repeat count for this event. Contains the number of times the keystroke has auto-repeated as a result of the user holding down the key.
bool clan::InputEvent::shift |
std::string clan::InputEvent::str |
Character sequence generated by event. A key press can generate one, none or multiple characters. The reason for this are deadkeys, i.e. press ^ + a and get ^; the first press would generate no key and the second one, in case that the second key being pressed doesn't support the ^ it would generate two characters (i.e. ^ + 5 => "", "^5")
Type clan::InputEvent::type |
Event type.