/* -*- 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 #include 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; }; struct input_payload_wiimote { unsigned short btns; ir_t ir; }; #ifdef __cplusplus } #endif #endif