summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/include/mouse_shared.hch
blob: 58d22a78c486f30c9ab64c406e82efb6d56cbe2b (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
47
48
49
50
51
52
53
54
55
56
57
/*! \file mouse_shared.hch
 *
 * \section generic Shared definitions etc.
 *
 * \section project Project information.
 * Project Graphic Equalizer\n
 * \author O.M. Schinagl
 * \date 20041011
 * \version 0.1
 *
 * \section copyright Copyright
 * Copyright ©2004 Koninklijke Philips Electronics N.V. All rights reserved
 *
 * \section history Change history
 * 20041011: O.M. Schinagl\n	Initial version
 *
 *****************************************************************************/
 
#ifndef _MOUSEDRIVER_SHARED_HCH
#define _MOUSEDRIVER_SHARED_HCH 1

/*** Data Types **********************/

/*
 * Type definition of the shared memory to be used in various processes
 */
typedef struct {
	unsigned 11 x;
	unsigned 11 y;
	unsigned 3 state;
	unsigned 1 status;
} mousedata_t;



/*
 * States used to identify wether mouse data is updated
 */
#define MOUSE_NOT_UPDATED	0
#define MOUSE_UPDATED		1



/*
 * Set of Mouse States defines
 */
#define MOUSE_STATE_UP		0
#define MOUSE_STATE_ON_PRESS	1
#define MOUSE_STATE_DOWN	2
#define MOUSE_STATE_ON_RELEASE	3



#else
#error "ERROR file mousedriver_shared.hch multiple times included"
#endif /* --- _MOUSEDRIVER_SHARED_HCH --- */