blob: 02157631304aee2f7ed9d72ac3efec4267a72fd1 (
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
|
#ifdef _WIN32_WCE
typedef void (*pAction)();
enum ActionType {
ACTION_NONE = 0,
ACTION_PAUSE = 1,
ACTION_SAVE = 2,
ACTION_QUIT = 3,
ACTION_SKIP = 4,
ACTION_HIDE = 5,
ACTION_KEYBOARD = 6,
ACTION_SOUND = 7,
ACTION_RIGHTCLICK = 8,
ACTION_CURSOR = 9,
ACTION_SUBTITLES = 10,
ACTION_BOSS = 11
};
struct oneAction {
unsigned int action_key;
unsigned int action_type;
};
#define TOTAL_ACTIONS 12
#define GAPI_KEY_BASE 1000
/*
#define GAPI_KEY_VKA 1
#define GAPI_KEY_VKB 2
#define GAPI_KEY_VKC 3
#define GAPI_KEY_VKSTART 4
#define GAPI_KEY_CALENDAR 5
#define GAPI_KEY_CONTACTS 6
#define GAPI_KEY_INBOX 7
#define GAPI_KEY_ITASK 8
#define GAPI_KEY_VKUP 9
#define GAPI_KEY_VKDOWN 10
#define GAPI_KEY_VKLEFT 11
#define GAPI_KEY_VKRIGHT 12
*/
#define INTERNAL_KEY_CALENDAR 0xc1
#define INTERNAL_KEY_CONTACTS 0xc2
#define INTERNAL_KEY_INBOX 0xc3
#define INTERNAL_KEY_ITASK 0xc4
void GAPIKeysInit(void);
void GAPIKeysInitActions(pAction*);
void GAPIKeysGetReference(void);
//const unsigned char getGAPIKeyMapping(short);
const char* getGAPIKeyName(unsigned int);
struct oneAction* getAction(int);
bool processAction (unsigned int);
void clearActionKey (unsigned char);
const unsigned int* getActionKeys(void);
void setActionKeys(unsigned int*);
const char* getActionName(int);
void setActionTypes(unsigned char *);
const unsigned char* getActionTypes();
void setNextType(int);
void setPreviousType(int);
unsigned int GAPIKeysTranslate(unsigned int);
void GAPIKeysHandleSelect(int);
#endif
|