summaryrefslogtreecommitdiffstats
path: root/matchblox/common/message_input.h
blob: e234b74e263bb2e0a9febfd226f0edd010b9fcae (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
/* -*- 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 <wiiuse.h>

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