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 Attributes | |
| bool | alt = false |
| State of modifier keys. More... | |
| double | axis_pos = 0.0 |
| Axis position. More... | |
| bool | ctrl = false |
| InputDevicePtr | device |
| Device that event originates from. More... | |
| InputCode | id = keycode_unknown |
| The exact input. More... | |
| int | id_offset = 0 |
| 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 = 0 |
| 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 = false |
| 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 = no_key |
| Event type. More... | |
Input event class.
| bool uicore::InputEvent::alt = false |
State of modifier keys.
| double uicore::InputEvent::axis_pos = 0.0 |
Axis position.
| bool uicore::InputEvent::ctrl = false |
| InputDevicePtr uicore::InputEvent::device |
Device that event originates from.
| InputCode uicore::InputEvent::id = keycode_unknown |
The exact input.
| int uicore::InputEvent::id_offset = 0 |
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 uicore::InputEvent::mouse_device_pos |
Mouse actual position at event time.
| Pointf uicore::InputEvent::mouse_pos |
Mouse position at event time.
| int uicore::InputEvent::repeat_count = 0 |
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 uicore::InputEvent::shift = false |
| std::string uicore::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")