summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Hill <colin.james.hill@gmail.com>2011-02-08 17:49:49 -0800
committerColin Hill <colin.james.hill@gmail.com>2011-02-08 17:49:49 -0800
commitc9f8827966af271a6a5f39b263875e4e81c1567a (patch)
tree42103cb760c66f273d51b09fb256bea8e5004160
parent891b0bb7b8e3f63d30032320b40c2ac93f9f492a (diff)
Worked on input event structs.
-rw-r--r--src/xNestedMouse.c3
-rw-r--r--src/xNestedMouse.h8
2 files changed, 11 insertions, 0 deletions
diff --git a/src/xNestedMouse.c b/src/xNestedMouse.c
index 634badc..ef82321 100644
--- a/src/xNestedMouse.c
+++ b/src/xNestedMouse.c
@@ -22,6 +22,9 @@
#define SYSCALL(call) while (((call) == -1) && (errno == EINTR))
+int NestedMouseMotion = 1;
+int NestedKeyPress = 2;
+
static InputInfoPtr NestedMousePreInit(InputDriverPtr drv, IDevPtr dev, int flags);
static void NestedMouseUnInit(InputDriverPtr drv, InputInfoPtr pInfo, int flags);
static pointer NestedMousePlug(pointer module, pointer options, int *errmaj, int *errmin);
diff --git a/src/xNestedMouse.h b/src/xNestedMouse.h
index 89b2b4d..ec8ce1d 100644
--- a/src/xNestedMouse.h
+++ b/src/xNestedMouse.h
@@ -1,11 +1,19 @@
+extern int NestedMouseMotion;
+extern int NestedKeyPress;
+
typedef struct {
int x;
int y;
} NestedMouseMotionData;
+typedef struct {
+ char key;
+} NestedKeyPressData;
+
typedef union {
NestedMouseMotionData mouseMotion;
+ NestedKeyPressData keyPress;
} NestedInputData;
typedef union {