summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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