summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-05-15 13:59:14 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-05-15 13:59:14 (GMT)
commit93c5592b7acd57946dc8734bf0f507e27af1f827 (patch)
treeb7e015c56a26418e12c57214154a76d31fdb7fe5
parent2935063764f53e04d183ba38df918c24da41df23 (diff)
download2iv55-93c5592b7acd57946dc8734bf0f507e27af1f827.zip
2iv55-93c5592b7acd57946dc8734bf0f507e27af1f827.tar.gz
2iv55-93c5592b7acd57946dc8734bf0f507e27af1f827.tar.bz2
Header file for input events.
-rw-r--r--matchblox/common/message_input.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/matchblox/common/message_input.h b/matchblox/common/message_input.h
new file mode 100644
index 0000000..a54fe9b
--- /dev/null
+++ b/matchblox/common/message_input.h
@@ -0,0 +1,37 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 2; tab-width: 2 -*- */
+#ifndef _CMESSAGE_INPUT_H
+#define _CMESSAGE_INPUT_H
+
+
+#define MESSAGE_INPUT_KEYBOARD 0x00001100
+#define MESSAGE_INPUT_MOUSE 0x00001200
+#define MESSAGE_INPUT_WIIMOTE 0x00001400
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+struct input_payload_keyboard
+{
+ int specialkey;
+ int key;
+ int modifier;
+ int x;
+ int y;
+};
+
+struct input_payload_mouse
+{
+ int passive;
+ int button;
+ int state;
+ int x;
+ int y;
+};
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif