Mir
input_device_state_event.h
Go to the documentation of this file.
1 /*
2  * Copyright © 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 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: Andreas Pokorny <andreas.pokorny@canonical.com>
17  */
18 
19 #ifndef MIR_TOOLKIT_EVENTS_INPUT_DEVICE_STATE_EVENT_H_
20 #define MIR_TOOLKIT_EVENTS_INPUT_DEVICE_STATE_EVENT_H_
21 
23 
24 #ifdef __cplusplus
25 
29 extern "C" {
30 #endif
31 
50  MirInputDeviceStateEvent const* ev);
51 
61 
69  MirInputDeviceStateEvent const* ev);
70 
78  MirInputDeviceStateEvent const* ev);
79 
87  MirInputDeviceStateEvent const* ev);
88 
97  MirInputDeviceStateEvent const* ev, uint32_t index);
98 
108  MirInputDeviceStateEvent const* ev, uint32_t index);
109 
118  MirInputDeviceStateEvent const* ev, uint32_t index);
119 
128  MirInputDeviceStateEvent const* ev, uint32_t index);
129 
130 #ifdef __cplusplus
131 }
133 #endif
134 
135 #endif /* MIR_TOOLKIT_EVENTS_INPUT_DEVICE_STATE_EVENT_H_ */
uint32_t mir_input_device_state_event_device_count(MirInputDeviceStateEvent const *ev)
Retrieve the number of attached input devices.
Definition: event.cpp:309
MirPointerButtons mir_input_device_state_event_pointer_buttons(MirInputDeviceStateEvent const *ev)
MirInputDeviceStateEvent informs clients about the current state of the input devices.
Definition: event.cpp:285
MirInputEventModifiers mir_input_device_state_event_modifiers(MirInputDeviceStateEvent const *ev)
Retrieve the modifier keys pressed on all input devices.
Definition: event.cpp:303
Definition: input_device_state_event.h:27
int64_t mir_input_device_state_event_time(MirInputDeviceStateEvent const *ev)
Retrieve the time associated with a MirInputDeviceStateEvent.
Definition: event.cpp:297
unsigned int MirInputEventModifiers
Definition: input_event.h:66
uint32_t const * mir_input_device_state_event_device_pressed_keys(MirInputDeviceStateEvent const *ev, uint32_t index)
Retrieve an array of pressed keys on the device identified by the index.
Definition: event.cpp:322
int64_t MirInputDeviceId
Definition: input_event.h:35
MirPointerButtons mir_input_device_state_event_device_pointer_buttons(MirInputDeviceStateEvent const *ev, uint32_t index)
Retrieve the pointer button state of the device identified by the index.
Definition: event.cpp:336
float mir_input_device_state_event_pointer_axis(MirInputDeviceStateEvent const *ev, MirPointerAxis axis)
Retrieve the pointer position.
Definition: event.cpp:291
MirInputDeviceId mir_input_device_state_event_device_id(MirInputDeviceStateEvent const *ev, uint32_t index)
Retrieve the device id.
Definition: event.cpp:315
unsigned int MirPointerButtons
Definition: pointer_event.h:85
MirPointerAxis
Identifiers for pointer axis.
Definition: pointer_event.h:56
uint32_t mir_input_device_state_event_device_pressed_keys_count(MirInputDeviceStateEvent const *ev, uint32_t index)
Retrieve the size of scan code array of the device identified by the index.
Definition: event.cpp:329

Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Sep 8 14:50:19 UTC 2016