pandora: fix readme and pxml version
[picodrive.git] / platform / common / input_pico.h
CommitLineData
e743be20 1#ifndef INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c
2#define INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c 1
3
636d5f25 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
e743be20 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
15cc45c0 30#define PEVB_PICO_STORY 19
31#define PEVB_PICO_PAD 18
44be7e5c 32#define PEVB_GRAB_INPUT 17
576c1b8a 33#define PEVB_SWITCH_KBD 16
34#define PEVB_RESET 15
e743be20 35
36#define PEV_VOL_DOWN (1 << PEVB_VOL_DOWN)
37#define PEV_VOL_UP (1 << PEVB_VOL_UP)
38#define PEV_STATE_LOAD (1 << PEVB_STATE_LOAD)
39#define PEV_STATE_SAVE (1 << PEVB_STATE_SAVE)
40#define PEV_SWITCH_RND (1 << PEVB_SWITCH_RND)
41#define PEV_SSLOT_PREV (1 << PEVB_SSLOT_PREV)
42#define PEV_SSLOT_NEXT (1 << PEVB_SSLOT_NEXT)
43#define PEV_MENU (1 << PEVB_MENU)
44#define PEV_FF (1 << PEVB_FF)
45#define PEV_PICO_PNEXT (1 << PEVB_PICO_PNEXT)
46#define PEV_PICO_PPREV (1 << PEVB_PICO_PPREV)
15cc45c0 47#define PEV_PICO_STORY (1 << PEVB_PICO_STORY)
48#define PEV_PICO_PAD (1 << PEVB_PICO_PAD)
44be7e5c 49#define PEV_GRAB_INPUT (1 << PEVB_GRAB_INPUT)
576c1b8a 50#define PEV_SWITCH_KBD (1 << PEVB_SWITCH_KBD)
9db6a544 51#define PEV_RESET (1 << PEVB_RESET)
e743be20 52
576c1b8a 53#define PEV_MASK 0x7fff8000
0e732d77 54
55/* Keyboard Pico */
56
57// Blue buttons
20c9a3ba 58#define PEVB_KBD_1 0x16
59#define PEVB_KBD_2 0x1e
60#define PEVB_KBD_3 0x26
61#define PEVB_KBD_4 0x25
62#define PEVB_KBD_5 0x2e
63#define PEVB_KBD_6 0x36
64#define PEVB_KBD_7 0x3d
65#define PEVB_KBD_8 0x3e
66#define PEVB_KBD_9 0x46
67#define PEVB_KBD_0 0x45
68#define PEVB_KBD_MINUS 0x4e
69#define PEVB_KBD_CARET 0x55
70#define PEVB_KBD_YEN 0x6a // ¥
71
72#define PEVB_KBD_q 0x15
73#define PEVB_KBD_w 0x1d
74#define PEVB_KBD_e 0x24
75#define PEVB_KBD_r 0x2d
76#define PEVB_KBD_t 0x2c
77#define PEVB_KBD_y 0x35
78#define PEVB_KBD_u 0x3c
79#define PEVB_KBD_i 0x43
80#define PEVB_KBD_o 0x44
81#define PEVB_KBD_p 0x4d
82#define PEVB_KBD_AT 0x54
83#define PEVB_KBD_LEFTBRACKET 0x5b
84
85#define PEVB_KBD_a 0x1c
86#define PEVB_KBD_s 0x1b
87#define PEVB_KBD_d 0x23
88#define PEVB_KBD_f 0x2b
89#define PEVB_KBD_g 0x34
90#define PEVB_KBD_h 0x33
91#define PEVB_KBD_j 0x3b
92#define PEVB_KBD_k 0x42
93#define PEVB_KBD_l 0x4b
94#define PEVB_KBD_SEMICOLON 0x4c
95#define PEVB_KBD_COLON 0x52
96#define PEVB_KBD_RIGHTBRACKET 0x5d
97
98#define PEVB_KBD_z 0x1a
99#define PEVB_KBD_x 0x22
100#define PEVB_KBD_c 0x21
101#define PEVB_KBD_v 0x2a
102#define PEVB_KBD_b 0x32
103#define PEVB_KBD_n 0x31
104#define PEVB_KBD_m 0x3a
105#define PEVB_KBD_COMMA 0x41
106#define PEVB_KBD_PERIOD 0x49
107#define PEVB_KBD_SLASH 0x4a
108#define PEVB_KBD_RO 0x51 // ろ
109
110#define PEVB_KBD_SPACE 0x29
0e732d77 111
112// Green button on top-left
20c9a3ba 113#define PEVB_KBD_ESCAPE 0x76
0e732d77 114
115// Orange buttons on left
20c9a3ba 116#define PEVB_KBD_CAPSLOCK 0x58
576c1b8a 117#define PEVB_KBD_LSHIFT 0x12 // left shift
0e732d77 118
119// Green buttons on right
20c9a3ba 120#define PEVB_KBD_BACKSPACE 0x66
121#define PEVB_KBD_INSERT 0x81
122#define PEVB_KBD_DELETE 0x85
0e732d77 123
124// Red button on bottom-right
20c9a3ba 125#define PEVB_KBD_RETURN 0x5a
0e732d77 126
127// Orange buttons on bottom
20c9a3ba 128#define PEVB_KBD_SOUND 0x67 // muhenkan (graph)
129#define PEVB_KBD_HOME 0x64 // henkan (clr/home)
130#define PEVB_KBD_CJK 0x13 // kana/kanji
131#define PEVB_KBD_ROMAJI 0x17
132
133// Other buttons for SC-3000
576c1b8a 134#define PEVB_KBD_RSHIFT 0x59 // right shift
20c9a3ba 135#define PEVB_KBD_CTRL 0x14
136#define PEVB_KBD_FUNC 0x11
137#define PEVB_KBD_UP 0x75
138#define PEVB_KBD_DOWN 0x72
139#define PEVB_KBD_LEFT 0x6b
140#define PEVB_KBD_RIGHT 0x74
438abd99 141
e743be20 142#endif /* INCLUDE_c48097f3ff2a6a9af1cce8fd7a9b3f0c */