Mir
input_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2014-2016 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify it
5  * under the terms of the GNU Lesser General Public License version 2 or 3,
6  * as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Robert Carr <robert.carr@canonical.com>
17  */
18 
19 #ifndef MIR_TOOLKIT_INPUT_EVENT_H_
20 #define MIR_TOOLKIT_INPUT_EVENT_H_
21 
24 
25 #include <stdint.h>
26 #include <stdbool.h>
27 
28 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 typedef enum {
40 
43 
47 typedef enum {
67 typedef unsigned int MirInputEventModifiers;
68 
69 #ifdef __cplusplus
70 }
72 #endif
73 
77 
78 #ifdef __cplusplus
83 extern "C" {
84 #endif
85 
93 
101 
109 
118 
127 
136 
144 
154 
162 
163 #ifdef __cplusplus
164 }
166 #endif
167 
168 #endif // MIR_TOOLKIT_INPUT_EVENT_H_
MirEvent const * mir_input_event_get_event(MirInputEvent const *event)
Retrieve the MirEvent associated with a given input event.
MirInputEventType
Definition: input_event.h:36
struct MirPointerEvent MirPointerEvent
An event type describing a change in pointer device state.
Definition: pointer_event.h:35
MirCookie const * mir_input_event_get_cookie(MirInputEvent const *ev)
Returns the cookie associated with an input event.
struct MirCookie MirCookie
Definition: event.h:82
int64_t MirInputDeviceId
Definition: mir_input_device_types.h:31
MirPointerEvent const * mir_input_event_get_pointer_event(MirInputEvent const *event)
Retrieve the MirPointerEvent associated with a given input event.
int64_t mir_input_event_get_event_time(MirInputEvent const *event)
Retrieve the time at which an input event occurred.
struct MirKeyboardEvent MirKeyboardEvent
An event type describing a change in keyboard state.
Definition: keyboard_event.h:41
MirTouchEvent const * mir_input_event_get_touch_event(MirInputEvent const *event)
Retrieve the MirTouchEvent associated with a given input event.
MirKeyboardEvent const * mir_input_event_get_keyboard_event(MirInputEvent const *event)
Retrieve the MirKeyboardEvent associated with a given input event.
MirInputEventType mir_input_event_get_type(MirInputEvent const *event)
Retrieve the type of an input event.
struct MirInputEvent MirInputEvent
Definition: event.h:70
struct MirEvent MirEvent
Definition: event.h:84
MirInputDeviceId mir_input_event_get_device_id(MirInputEvent const *event)
Retrieves the device id responsible for generating an input event.
bool mir_input_event_has_cookie(MirInputEvent const *ev)
Query if an input event contains a cookie.
struct MirTouchEvent MirTouchEvent
An event type describing a change in touch device state.
Definition: touch_event.h:33
MirInputEventModifier
Description of key modifier state.
Definition: input_event.h:47
unsigned int MirInputEventModifiers
Definition: input_event.h:67
@ mir_input_event_type_pointer
Definition: input_event.h:39
@ mir_input_event_type_touch
Definition: input_event.h:38
@ mir_input_event_type_key
Definition: input_event.h:37
@ mir_input_event_types
Definition: input_event.h:41
@ mir_input_event_modifier_caps_lock
Definition: input_event.h:63
@ mir_input_event_modifier_ctrl
Definition: input_event.h:57
@ mir_input_event_modifier_meta
Definition: input_event.h:60
@ mir_input_event_modifier_meta_right
Definition: input_event.h:62
@ mir_input_event_modifier_alt_right
Definition: input_event.h:51
@ mir_input_event_modifier_alt
Definition: input_event.h:49
@ mir_input_event_modifier_num_lock
Definition: input_event.h:64
@ mir_input_event_modifier_alt_left
Definition: input_event.h:50
@ mir_input_event_modifier_shift
Definition: input_event.h:52
@ mir_input_event_modifier_meta_left
Definition: input_event.h:61
@ mir_input_event_modifier_shift_right
Definition: input_event.h:54
@ mir_input_event_modifier_ctrl_left
Definition: input_event.h:58
@ mir_input_event_modifier_ctrl_right
Definition: input_event.h:59
@ mir_input_event_modifier_function
Definition: input_event.h:56
@ mir_input_event_modifier_scroll_lock
Definition: input_event.h:65
@ mir_input_event_modifier_sym
Definition: input_event.h:55
@ mir_input_event_modifier_none
Definition: input_event.h:48
@ mir_input_event_modifier_shift_left
Definition: input_event.h:53

Copyright © 2012-2022 Canonical Ltd.
Generated on Fri Nov 11 11:01:41 UTC 2022
This documentation is licensed under the GPL version 2 or 3.