summaryrefslogtreecommitdiff
path: root/linux_input.h
diff options
context:
space:
mode:
authorChristoph Brill <egore911@egore911.de>2008-06-06 15:58:17 +0200
committerChristoph Brill <egore911@egore911.de>2008-06-06 15:58:17 +0200
commit86a5fab70ff633d40c05a37d8e9a6a8073cdb129 (patch)
treebbda0908c55897c5f82d28a37d75eb8d1b4ed8c1 /linux_input.h
parentcd6a1225ec319cad9788e8fba158d9792b55de23 (diff)
Start reorganizing the source tree
First let's move the source and header files to a seperate source directory. The structure of the new directory layout will be similar to xf86-input-evdev.
Diffstat (limited to 'linux_input.h')
-rw-r--r--linux_input.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/linux_input.h b/linux_input.h
deleted file mode 100644
index ed7bfad..0000000
--- a/linux_input.h
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef _LINUX_INPUT_H_
-#define _LINUX_INPUT_H_
-
-/*
- * These defines are taken from input.h in the linux kernel source tree.
- * Copyright (c) 1999-2002 Vojtech Pavlik
- */
-
-/*
- * The event structure.
- */
-struct input_event {
- unsigned long tv_sec;
- unsigned long tv_usec;
- unsigned short type;
- unsigned short code;
- int value;
-};
-
-struct input_id {
- unsigned short bustype;
- unsigned short vendor;
- unsigned short product;
- unsigned short version;
-};
-
-struct input_absinfo {
- int value;
- int minimum;
- int maximum;
- int fuzz;
- int flat;
-};
-
-#define EVIOCGID _IOR('E', 0x02, struct input_id) /* get device ID */
-#define EVIOCGRAB _IOW('E', 0x90, int) /* Grab/Release device */
-#define EVIOCGBIT(ev,len) _IOC(_IOC_READ, 'E', 0x20 + ev, len) /* get event bits */
-#define EVIOCGABS(abs) _IOR('E', 0x40 + abs, struct input_absinfo) /* get abs value/limits */
-
-#define EV_SYN 0x00
-#define EV_KEY 0x01
-#define EV_REL 0x02
-#define EV_ABS 0x03
-#define EV_MSC 0x04
-#define EV_MAX 0x1f
-
-#define SYN_REPORT 0
-
-#define BTN_LEFT 0x110
-#define BTN_RIGHT 0x111
-#define BTN_MIDDLE 0x112
-#define BTN_FORWARD 0x115
-#define BTN_BACK 0x116
-#define BTN_0 0x100
-#define BTN_1 0x101
-#define BTN_2 0x102
-#define BTN_3 0x103
-#define BTN_4 0x104
-#define BTN_5 0x105
-#define BTN_6 0x106
-#define BTN_7 0x107
-#define BTN_A 0x130
-#define BTN_B 0x131
-#define BTN_TOOL_PEN 0x140
-#define BTN_TOOL_FINGER 0x145
-#define BTN_TOOL_DOUBLETAP 0x14d
-#define BTN_TOOL_TRIPLETAP 0x14e
-
-#define KEY_MAX 0x1ff
-
-#define REL_X 0x00
-#define REL_Y 0x01
-
-#define ABS_X 0x00
-#define ABS_Y 0x01
-#define ABS_PRESSURE 0x18
-#define ABS_TOOL_WIDTH 0x1c
-
-#define MSC_GESTURE 0x02
-
-
-#endif /* _LINUX_INPUT_H_ */