blob: 03b5c5a0571dd958921319e5302d37ae39f507ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef RELABSD_INPUT_H
#define RELABSD_INPUT_H
#include <libevdev/libevdev.h>
struct relabsd_input
{
struct libevdev * dev;
int fd;
};
int relabsd_input_open
(
struct relabsd_input * const input,
const char * const filename
);
void relabsd_input_close (const struct relabsd_input * const input);
int relabsd_input_read
(
const struct relabsd_input * const input,
unsigned int * const input_type,
unsigned int * const input_code,
int * const input_value
);
#endif
|