summaryrefslogtreecommitdiffstats
path: root/matchblox/common/message_input.h
blob: f06e61072aefb49ece6990c9e6bd67c35c0deeb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* -*- 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;
};

struct input_payload_wiimote
{
  int passive;
  int button;
  int state;
  int x;
  int y;
};

#ifdef __cplusplus
}
#endif

#endif