release r2, update credits
[fceu.git] / input.h
... / ...
CommitLineData
1enum nkeys_bits {
2 NKEYB_A = 0,
3 NKEYB_B,
4 NKEYB_SELECT,
5 NKEYB_START,
6 NKEYB_UP,
7 NKEYB_DOWN,
8 NKEYB_LEFT,
9 NKEYB_RIGHT,
10 NKEYB_A_TURBO,
11 NKEYB_B_TURBO,
12};
13
14enum nkeys {
15 NKEY_A = 1 << NKEYB_A,
16 NKEY_B = 1 << NKEYB_B,
17 NKEY_SELECT = 1 << NKEYB_SELECT,
18 NKEY_START = 1 << NKEYB_START,
19 NKEY_UP = 1 << NKEYB_UP,
20 NKEY_DOWN = 1 << NKEYB_DOWN,
21 NKEY_LEFT = 1 << NKEYB_LEFT,
22 NKEY_RIGHT = 1 << NKEYB_RIGHT,
23 NKEY_A_TURBO = 1 << NKEYB_A_TURBO,
24 NKEY_B_TURBO = 1 << NKEYB_B_TURBO,
25};
26
27enum emu_actions_bits {
28 EACTB_SAVE_STATE = 31,
29 EACTB_LOAD_STATE = 30,
30 EACTB_NEXT_SLOT = 29,
31 EACTB_PREV_SLOT = 28,
32 EACTB_FDS_INSERT = 27,
33 EACTB_FDS_SELECT = 26,
34 EACTB_INSERT_COIN = 25,
35 EACTB_ENTER_MENU = 24,
36 EACTB_VOLUME_UP = 23,
37 EACTB_VOLUME_DOWN = 22,
38};
39
40enum emu_actions {
41 EACT_SAVE_STATE = 1 << EACTB_SAVE_STATE,
42 EACT_LOAD_STATE = 1 << EACTB_LOAD_STATE,
43 EACT_NEXT_SLOT = 1 << EACTB_NEXT_SLOT,
44 EACT_PREV_SLOT = 1 << EACTB_PREV_SLOT,
45 EACT_FDS_INSERT = 1 << EACTB_FDS_INSERT,
46 EACT_FDS_SELECT = 1 << EACTB_FDS_SELECT,
47 EACT_INSERT_COIN = 1 << EACTB_INSERT_COIN,
48 EACT_ENTER_MENU = 1 << EACTB_ENTER_MENU,
49 EACT_VOLUME_UP = 1 << EACTB_VOLUME_UP,
50 EACT_VOLUME_DOWN = 1 << EACTB_VOLUME_DOWN,
51};
52