Mir
input_configuration_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2015 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_EVENTS_INPUT_CONFIGURATION_EVENT_H_
20 #define MIR_TOOLKIT_EVENTS_INPUT_CONFIGURATION_EVENT_H_
21 
24 
25 #ifdef __cplusplus
26 
30 extern "C" {
31 #endif
32 
43 
44 typedef enum
45 {
49 MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
50 
51 #pragma GCC diagnostic push
52 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
53 
60 MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
61 
68 int64_t mir_input_configuration_event_get_time(MirInputConfigurationEvent const* ev)
69 MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
70 
77 MirInputDeviceId mir_input_configuration_event_get_device_id(MirInputConfigurationEvent const* ev)
78 MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
79 #pragma GCC diagnostic pop
80 
81 #ifdef __cplusplus
82 }
84 #endif
85 
86 #endif /* MIR_TOOLKIT_INPUT_CONFIGURATION_EVENT_H_ */
Definition: input_configuration_event.h:46
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
int64_t MirInputDeviceId
Definition: mir_input_device_types.h:31
MirInputConfigurationAction mir_input_configuration_event_get_action(MirInputConfigurationEvent const *ev) MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback")
Retrieve the input configuration action which occurred.
MirInputConfigurationAction
MirInputConfigurationEvent indicates a configuration change in the input device subsystem. Eventually it&#39;s usage will be required to properly interpret MirInputEvent, for example: If we receive a button down, and then a device reset, we should not expect to receive the button up.
Definition: input_configuration_event.h:44
Definition: input_configuration_event.h:47
int64_t mir_input_configuration_event_get_time(MirInputConfigurationEvent const *ev) MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback")
Retreive the time associated with a MirInputConfiguration event.
MirInputDeviceId mir_input_configuration_event_get_device_id(MirInputConfigurationEvent const *ev) MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback")
Retreive the device id associated with a MirInputConfiguration event.

Copyright © 2012-2019 Canonical Ltd.
Generated on Thu Feb 28 09:03:56 UTC 2019
This documentation is licensed under the GPL version 2 or 3.