Key events are generated when a key changes its logical state, usually by being pressed or released.
More...
Key events are generated when a key changes its logical state, usually by being pressed or released.
struct libinput_event* libinput_event_keyboard_get_base_event |
( |
struct libinput_event_keyboard * |
event | ) |
|
- Returns
- The generic libinput_event of this event
uint32_t libinput_event_keyboard_get_key |
( |
struct libinput_event_keyboard * |
event | ) |
|
- Returns
- The keycode that triggered this key event
- Returns
- The state change of the key
uint32_t libinput_event_keyboard_get_seat_key_count |
( |
struct libinput_event_keyboard * |
event | ) |
|
For the key of a LIBINPUT_EVENT_KEYBOARD_KEY event, return the total number of keys pressed on all devices on the associated seat after the event was triggered.
"
- Note
- It is an application bug to call this function for events other than LIBINPUT_EVENT_KEYBOARD_KEY. For other events, this function returns 0.
- Returns
- the seat wide pressed key count for the key of this event
uint32_t libinput_event_keyboard_get_time |
( |
struct libinput_event_keyboard * |
event | ) |
|
- Returns
- The event time for this event