Go to the documentation of this file.
32 #ifndef _UAPI__UINPUT_H_
33 #define _UAPI__UINPUT_H_
35 #include <linux/types.h>
36 #include <linux/input.h>
38 #define UINPUT_VERSION 3
55 #define UINPUT_IOCTL_BASE 'U'
56 #define UI_DEV_CREATE _IO(UINPUT_IOCTL_BASE, 1)
57 #define UI_DEV_DESTROY _IO(UINPUT_IOCTL_BASE, 2)
59 #define UI_SET_EVBIT _IOW(UINPUT_IOCTL_BASE, 100, int)
60 #define UI_SET_KEYBIT _IOW(UINPUT_IOCTL_BASE, 101, int)
61 #define UI_SET_RELBIT _IOW(UINPUT_IOCTL_BASE, 102, int)
62 #define UI_SET_ABSBIT _IOW(UINPUT_IOCTL_BASE, 103, int)
63 #define UI_SET_MSCBIT _IOW(UINPUT_IOCTL_BASE, 104, int)
64 #define UI_SET_LEDBIT _IOW(UINPUT_IOCTL_BASE, 105, int)
65 #define UI_SET_SNDBIT _IOW(UINPUT_IOCTL_BASE, 106, int)
66 #define UI_SET_FFBIT _IOW(UINPUT_IOCTL_BASE, 107, int)
67 #define UI_SET_PHYS _IOW(UINPUT_IOCTL_BASE, 108, char*)
68 #define UI_SET_SWBIT _IOW(UINPUT_IOCTL_BASE, 109, int)
69 #define UI_SET_PROPBIT _IOW(UINPUT_IOCTL_BASE, 110, int)
71 #define UI_BEGIN_FF_UPLOAD _IOWR(UINPUT_IOCTL_BASE, 200, struct uinput_ff_upload)
72 #define UI_END_FF_UPLOAD _IOW(UINPUT_IOCTL_BASE, 201, struct uinput_ff_upload)
73 #define UI_BEGIN_FF_ERASE _IOWR(UINPUT_IOCTL_BASE, 202, struct uinput_ff_erase)
74 #define UI_END_FF_ERASE _IOW(UINPUT_IOCTL_BASE, 203, struct uinput_ff_erase)
123 #define EV_UINPUT 0x0101
124 #define UI_FF_UPLOAD 1
125 #define UI_FF_ERASE 2
127 #define UINPUT_MAX_NAME_SIZE 80