annotate src/common/inputGlobal.h @ 26:18eaae41bde3

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