blob: 1112e92736614a847e707bbecc50c2f751945591 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef _EVEMU_IMPL_H
#define _EVEMU_IMPL_H
#include <evemu.h>
#include <linux/uinput.h>
#define EVPLAY_NBITS KEY_CNT
#define EVPLAY_NBYTES ((EVPLAY_NBITS + 7) / 8)
struct evemu_device {
int version_major, version_minor;
char name[UINPUT_MAX_NAME_SIZE];
struct input_id id;
unsigned char prop[EVPLAY_NBYTES];
unsigned char mask[EV_CNT][EVPLAY_NBYTES];
int pbytes, mbytes[EV_CNT];
struct input_absinfo abs[ABS_CNT];
};
#endif
|