Mercurial > vba-clojure
comparison src/common/inputGlobal.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 #ifndef VBA_INPUT_GLOBAL_H | |
2 #define VBA_INPUT_GLOBAL_H | |
3 | |
4 #if _MSC_VER > 1000 | |
5 #pragma once | |
6 #endif // _MSC_VER > 1000 | |
7 | |
8 enum | |
9 { | |
10 KEY_BUTTON_A, KEY_BUTTON_B, | |
11 KEY_BUTTON_SELECT, KEY_BUTTON_START, | |
12 KEY_RIGHT, KEY_LEFT, | |
13 KEY_UP, KEY_DOWN, | |
14 KEY_BUTTON_R, KEY_BUTTON_L, | |
15 KEY_BUTTON_SPEED, KEY_BUTTON_CAPTURE, | |
16 KEY_BUTTON_GS | |
17 }; | |
18 | |
19 #define BUTTON_MASK_A (0x0001) | |
20 #define BUTTON_MASK_B (0x0002) | |
21 #define BUTTON_MASK_SELECT (0x0004) | |
22 #define BUTTON_MASK_START (0x0008) | |
23 #define BUTTON_MASK_RIGHT (0x0010) | |
24 #define BUTTON_MASK_LEFT (0x0020) | |
25 #define BUTTON_MASK_UP (0x0040) | |
26 #define BUTTON_MASK_DOWN (0x0080) | |
27 #define BUTTON_MASK_R (0x0100) | |
28 #define BUTTON_MASK_L (0x0200) | |
29 #define BUTTON_GB_MASK (BUTTON_MASK_A|BUTTON_MASK_B|BUTTON_MASK_SELECT|BUTTON_MASK_START| \ | |
30 BUTTON_MASK_RIGHT|BUTTON_MASK_LEFT|BUTTON_MASK_UP|BUTTON_MASK_DOWN) | |
31 #define BUTTON_GBA_ONLY (BUTTON_MASK_R|BUTTON_MASK_L) | |
32 #define BUTTON_REGULAR_MASK (BUTTON_GB_MASK|BUTTON_GBA_ONLY) | |
33 #define BUTTON_MASK_OLD_RESET (0x0400) | |
34 #define BUTTON_MASK_NEW_RESET (0x0800) | |
35 #define BUTTON_MASK_LEFT_MOTION (0x1000) | |
36 #define BUTTON_MASK_RIGHT_MOTION (0x2000) | |
37 #define BUTTON_MASK_DOWN_MOTION (0x4000) | |
38 #define BUTTON_MASK_UP_MOTION (0x8000) | |
39 #define BUTTON_MOTION_MASK (BUTTON_MASK_LEFT_MOTION|BUTTON_MASK_RIGHT_MOTION|BUTTON_MASK_DOWN_MOTION| \ | |
40 BUTTON_MASK_UP_MOTION) | |
41 #define BUTTON_RECORDINGONLY_MASK (BUTTON_MASK_OLD_RESET|BUTTON_MASK_NEW_RESET|BUTTON_MOTION_MASK) | |
42 #define BUTTON_REGULAR_RECORDING_MASK (BUTTON_REGULAR_MASK|BUTTON_RECORDINGONLY_MASK) | |
43 #define BUTTON_MASK_SPEED (0x040000) | |
44 #define BUTTON_MASK_CAPTURE (0x080000) | |
45 #define BUTTON_MASK_GAMESHARK (0x100000) | |
46 #define BUTTON_NONRECORDINGONLY_MASK (BUTTON_MASK_SPEED|BUTTON_MASK_CAPTURE|BUTTON_MASK_GAMESHARK) | |
47 | |
48 #endif // VBA_INPUT_GLOBAL_H |