menu: add reset hotkey
[picodrive.git] / platform / common / input_pico.h
1 #ifndef INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c
2 #define INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c 1
3
4 /* gamepad - MXYZ SACB RLDU */
5 #define GBTN_UP         0
6 #define GBTN_DOWN       1
7 #define GBTN_LEFT       2
8 #define GBTN_RIGHT      3
9 #define GBTN_B          4
10 #define GBTN_C          5
11 #define GBTN_A          6
12 #define GBTN_START      7
13 #define GBTN_Z          8
14 #define GBTN_Y          9
15 #define GBTN_X          10
16 #define GBTN_MODE       11
17
18 /* ui events */
19 #define PEVB_VOL_DOWN   30
20 #define PEVB_VOL_UP     29
21 #define PEVB_STATE_LOAD 28
22 #define PEVB_STATE_SAVE 27
23 #define PEVB_SWITCH_RND 26
24 #define PEVB_SSLOT_PREV 25
25 #define PEVB_SSLOT_NEXT 24
26 #define PEVB_MENU       23
27 #define PEVB_FF         22
28 #define PEVB_PICO_PNEXT 21
29 #define PEVB_PICO_PPREV 20
30 #define PEVB_PICO_SWINP 19
31 #define PEVB_RESET      18
32
33 #define PEV_VOL_DOWN    (1 << PEVB_VOL_DOWN)
34 #define PEV_VOL_UP      (1 << PEVB_VOL_UP)
35 #define PEV_STATE_LOAD  (1 << PEVB_STATE_LOAD)
36 #define PEV_STATE_SAVE  (1 << PEVB_STATE_SAVE)
37 #define PEV_SWITCH_RND  (1 << PEVB_SWITCH_RND)
38 #define PEV_SSLOT_PREV  (1 << PEVB_SSLOT_PREV)
39 #define PEV_SSLOT_NEXT  (1 << PEVB_SSLOT_NEXT)
40 #define PEV_MENU        (1 << PEVB_MENU)
41 #define PEV_FF          (1 << PEVB_FF)
42 #define PEV_PICO_PNEXT  (1 << PEVB_PICO_PNEXT)
43 #define PEV_PICO_PPREV  (1 << PEVB_PICO_PPREV)
44 #define PEV_PICO_SWINP  (1 << PEVB_PICO_SWINP)
45 #define PEV_RESET       (1 << PEVB_RESET)
46
47 #define PEV_MASK 0x7ffc0000
48
49 #endif /* INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c */