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
30extern "C" {
31#endif
32
43
44typedef enum
45{
49MIR_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"
60MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
61
68int64_t mir_input_configuration_event_get_time(MirInputConfigurationEvent const* ev)
69MIR_FOR_REMOVAL_IN_VERSION_1("Input devices and changes to the input devices are indicated via the MirInputConfigCallback");
70
78MIR_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_ */
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
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.
int64_t MirInputDeviceId
Definition: mir_input_device_types.h:31
MirInputConfigurationAction
MirInputConfigurationEvent indicates a configuration change in the input device subsystem....
Definition: input_configuration_event.h:45
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.
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.
@ mir_input_configuration_action_configuration_changed
Definition: input_configuration_event.h:46
@ mir_input_configuration_action_device_reset
Definition: input_configuration_event.h:47

Copyright © 2012-2022 Canonical Ltd.
Generated on Sun Oct 9 06:13:38 UTC 2022
This documentation is licensed under the GPL version 2 or 3.