blob: 99a00a2f9c670873244b5516b31ad2a99fb8fe75 (
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#ifndef __GPDEF_H__
#define __GPDEF_H__
#include "gpos_def.h"
#ifndef NULL
#define NULL 0
#endif
#ifndef TRUE
#define TRUE 1
#else
#undef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#else
#undef FALSE
#define FALSE 0
#endif
#ifndef __size_t
#define __size_t 1
typedef unsigned int size_t;
#endif
//ph0x
//#undef byte
//#define byte char
#undef ubyte
#define ubyte unsigned char
#undef uchar
#define uchar unsigned char
#undef word
#define word short
#undef uword
#define uword unsigned short
#undef ushort
#define ushort unsigned short
#undef dword
#define dword long
#undef udword
#define udword unsigned long
#undef ulong
#define ulong unsigned long
/* Button definitions */
#define GPC_VK_NONE 0x00
#define GPC_VK_LEFT 0x01
#define GPC_VK_UP 0x08
#define GPC_VK_RIGHT 0x04
#define GPC_VK_DOWN 0x02
#define GPC_VK_F1 0x80 /*AT OLD, VK_ENTER*/
#define GPC_VK_F2 0x10 /*AT OLD, VK_F3*/
#define GPC_VK_F3 0x20 /*AT OLD, VK_F2*/
#define GPC_VK_ENTER 0x40 /*AT OLD, VK_F1*/
#define GPC_VK_START 0x100
#define GPC_VK_SELECT 0x200
#define GPC_VK_FA GPC_VK_ENTER
#define GPC_VK_FB GPC_VK_F3
#define GPC_VK_FL GPC_VK_F2
#define GPC_VK_FR GPC_VK_F1
/* LCD Definitions */
#define GPC_LCD_WIDTH 320
#define GPC_LCD_HEIGHT 240
#define GPC_LCD_PHYSICAL_W 240
#define GPC_LCD_PHYSICAL_H 320
typedef struct tagGPRECT{
int left;
int top;
int right;
int bottom;
}GPRECT;
typedef struct tagGPPOINT{
int X;
int Y;
} GPPOINT;
/* file stuff */
#define MAX_PATH_NAME_LEN 256
#endif /*__GPDEF_H__*/
|