From 93c5592b7acd57946dc8734bf0f507e27af1f827 Mon Sep 17 00:00:00 2001 From: Oliver Schinagl Date: Thu, 15 May 2008 13:59:14 +0000 Subject: Header file for input events. --- matchblox/common/message_input.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 matchblox/common/message_input.h 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 -- cgit v0.12