diff options
Diffstat (limited to 'src/evemu-impl.h')
| -rw-r--r-- | src/evemu-impl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/evemu-impl.h b/src/evemu-impl.h new file mode 100644 index 0000000..2346590 --- /dev/null +++ b/src/evemu-impl.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef _EVEMU_IMPL_H | ||
| 2 | #define _EVEMU_IMPL_H | ||
| 3 | |||
| 4 | #include <evemu.h> | ||
| 5 | #include <linux/uinput.h> | ||
| 6 | |||
| 7 | #define EVPLAY_NBITS KEY_CNT | ||
| 8 | #define EVPLAY_NBYTES ((EVPLAY_NBITS + 7) / 8) | ||
| 9 | |||
| 10 | struct evemu_device { | ||
| 11 | int version_major, version_minor; | ||
| 12 | char name[UINPUT_MAX_NAME_SIZE]; | ||
| 13 | struct input_id id; | ||
| 14 | unsigned char mask[EV_CNT][EVPLAY_NBYTES]; | ||
| 15 | int bytes[EV_CNT]; | ||
| 16 | struct input_absinfo abs[ABS_CNT]; | ||
| 17 | }; | ||
| 18 | |||
| 19 | #endif | ||
