Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
p_standard.h
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef MCR_STANDARD_LINUX_P_STANDARD_H_
20 #define MCR_STANDARD_LINUX_P_STANDARD_H_
21 
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
29  mcr_SpacePosition cursor;
30  struct {
32  const struct input_event *echo_events;
33  size_t echo_event_count;
34  };
35  struct mcr_Device gen_dev;
36  struct mcr_Device abs_dev;
37  __s32 abs_resolution;
38  const char *uinput_path;
39  const char *event_path;
40  mtx_t device_lock;
41 };
42 
43 /* Common array length for standard and intercept echo events */
44 #define MCR_STANDARD_ECHO_EVENT_DEFAULT_COUNT 90
45 extern MCR_API const struct input_event *const mcr_standard_echo_event_defaults;
46 
47 extern MCR_API void mcr_standard_set_echo_events(struct mcr_context *ctx, const struct input_event *echoEvents, size_t count);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif
Currently Linux-specific. mcr_Device is a wrapper for creating uinput devices.
long long mcr_SpacePosition[MCR_DIMENSION_COUNT]
Definition: types.h:176
const struct input_event * echo_events
Definition: p_standard.h:32