libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
evdev.h
1#ifndef _CRTX_EVDEV_H
2#define _CRTX_EVDEV_H
3
4#ifdef __cplusplus
5extern "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
19 struct crtx_listener_base base;
20
21 char *device_path;
22
23 char stop;
24 int fd;
25 struct libevdev *device;
26};
27
28struct crtx_listener_base *crtx_setup_evdev_listener(void *options);
29CRTX_DECLARE_ALLOC_FUNCTION(evdev)
30
31void crtx_evdev_init();
32void crtx_evdev_finish();
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif
Definition evdev.h:18
base structure of a listener
Definition core.h:186