libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
src
evdev.h
1
#ifndef _CRTX_EVDEV_H
2
#define _CRTX_EVDEV_H
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
/*
9
* Mario Kicherer (dev@kicherer.org) 2016
10
*
11
*/
12
13
#include "libevdev/libevdev.h"
14
15
// #define EVDEV_MSG_ETYPE "evdev/event"
16
// extern char *evdev_msg_etype[];
17
18
struct
crtx_evdev_listener
{
19
struct
crtx_listener_base
base;
20
21
char
*device_path;
22
23
char
stop;
24
int
fd;
25
struct
libevdev *device;
26
};
27
28
struct
crtx_listener_base
*crtx_setup_evdev_listener(
void
*options);
29
CRTX_DECLARE_ALLOC_FUNCTION(evdev)
30
31
void
crtx_evdev_init();
32
void
crtx_evdev_finish();
33
34
#ifdef __cplusplus
35
}
36
#endif
37
38
#endif
crtx_evdev_listener
Definition
evdev.h:18
crtx_listener_base
base structure of a listener
Definition
core.h:186
Generated by
1.9.8