Build doom on clipv2 and clip+
[kugel-rb.git] / apps / plugins / zxbox / keymaps.h
blobee2a8d5f4a55e075dba8f308f2a812cc3a855467
1 #ifndef KEYMAPS_H
2 #define KEYMAPS_H
4 #if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
5 (CONFIG_KEYPAD == IPOD_1G2G_PAD)
7 #define ZX_UP BUTTON_MENU
8 #define ZX_DOWN BUTTON_PLAY
9 #define ZX_SELECT BUTTON_SELECT
10 #define ZX_LEFT BUTTON_LEFT
11 #define ZX_RIGHT BUTTON_RIGHT
13 #elif CONFIG_KEYPAD == IRIVER_H100_PAD || CONFIG_KEYPAD == IRIVER_H300_PAD
15 #define ZX_UP BUTTON_UP
16 #define ZX_DOWN BUTTON_DOWN
17 #define ZX_LEFT BUTTON_LEFT
18 #define ZX_RIGHT BUTTON_RIGHT
19 #define ZX_SELECT BUTTON_ON
20 #define ZX_MENU BUTTON_MODE
22 #elif CONFIG_KEYPAD == GIGABEAT_PAD
24 #define ZX_UP BUTTON_UP
25 #define ZX_DOWN BUTTON_DOWN
26 #define ZX_LEFT BUTTON_LEFT
27 #define ZX_RIGHT BUTTON_RIGHT
28 #define ZX_SELECT BUTTON_SELECT
29 #define ZX_MENU BUTTON_MENU
31 #elif CONFIG_KEYPAD == GIGABEAT_S_PAD
33 #define ZX_UP BUTTON_UP
34 #define ZX_DOWN BUTTON_DOWN
35 #define ZX_LEFT BUTTON_LEFT
36 #define ZX_RIGHT BUTTON_RIGHT
37 #define ZX_SELECT BUTTON_SELECT
38 #define ZX_MENU BUTTON_MENU
40 #elif CONFIG_KEYPAD == IAUDIO_X5M5_PAD
42 #define ZX_RIGHT BUTTON_RIGHT
43 #define ZX_LEFT BUTTON_LEFT
44 #define ZX_UP BUTTON_UP
45 #define ZX_DOWN BUTTON_DOWN
46 #define ZX_SELECT BUTTON_SELECT
47 #define ZX_MENU BUTTON_PLAY
49 #elif CONFIG_KEYPAD == RECORDER_PAD
50 #define ZX_SELECT BUTTON_PLAY
51 #define ZX_MENU BUTTON_F1
52 #define ZX_LEFT BUTTON_LEFT
53 #define ZX_RIGHT BUTTON_RIGHT
54 #define ZX_UP BUTTON_UP
55 #define ZX_DOWN BUTTON_DOWN
57 #elif CONFIG_KEYPAD == ARCHOS_AV300_PAD
58 #define ZX_SELECT BUTTON_SELECT
59 #define ZX_MENU BUTTON_OFF
60 #define ZX_LEFT BUTTON_LEFT
61 #define ZX_RIGHT BUTTON_RIGHT
62 #define ZX_UP BUTTON_UP
63 #define ZX_DOWN BUTTON_DOWN
65 #elif CONFIG_KEYPAD == ONDIO_PAD
66 #define ZX_SELECT BUTTON_MENU
67 #define ZX_MENU BUTTON_OFF
68 #define ZX_LEFT BUTTON_LEFT
69 #define ZX_RIGHT BUTTON_RIGHT
70 #define ZX_UP BUTTON_UP
71 #define ZX_DOWN BUTTON_DOWN
73 #elif CONFIG_KEYPAD == IRIVER_IFP7XX_PAD
74 #define ZX_SELECT BUTTON_SELECT
75 #define ZX_MENU BUTTON_PLAY
76 #define ZX_LEFT BUTTON_LEFT
77 #define ZX_RIGHT BUTTON_RIGHT
78 #define ZX_UP BUTTON_UP
79 #define ZX_DOWN BUTTON_DOWN
81 #elif CONFIG_KEYPAD == IRIVER_H10_PAD
82 #define ZX_SELECT BUTTON_REW
83 #define ZX_MENU BUTTON_FF
84 #define ZX_LEFT BUTTON_LEFT
85 #define ZX_RIGHT BUTTON_RIGHT
86 #define ZX_UP BUTTON_SCROLL_UP
87 #define ZX_DOWN BUTTON_SCROLL_DOWN
89 #elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
90 (CONFIG_KEYPAD == SANSA_C200_PAD) || \
91 (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \
92 (CONFIG_KEYPAD == SANSA_M200_PAD)
93 #define ZX_SELECT BUTTON_SELECT
94 #define ZX_MENU BUTTON_POWER
95 #define ZX_LEFT BUTTON_LEFT
96 #define ZX_RIGHT BUTTON_RIGHT
97 #define ZX_UP BUTTON_UP
98 #define ZX_DOWN BUTTON_DOWN
100 #elif (CONFIG_KEYPAD == SANSA_FUZE_PAD)
101 #define ZX_SELECT BUTTON_SELECT
102 #define ZX_MENU (BUTTON_HOME|BUTTON_REPEAT)
103 #define ZX_LEFT BUTTON_LEFT
104 #define ZX_RIGHT BUTTON_RIGHT
105 #define ZX_UP BUTTON_UP
106 #define ZX_DOWN BUTTON_DOWN
108 #elif CONFIG_KEYPAD == MROBE500_PAD
109 #define ZX_UP BUTTON_RC_PLAY
110 #define ZX_DOWN BUTTON_RC_DOWN
111 #define ZX_LEFT BUTTON_RC_REW
112 #define ZX_RIGHT BUTTON_RC_FF
113 #define ZX_SELECT BUTTON_RC_MODE
114 #define ZX_MENU (BUTTON_POWER | BUTTON_REL)
116 #elif CONFIG_KEYPAD == MROBE100_PAD
117 #define ZX_UP BUTTON_UP
118 #define ZX_DOWN BUTTON_DOWN
119 #define ZX_LEFT BUTTON_LEFT
120 #define ZX_RIGHT BUTTON_RIGHT
121 #define ZX_SELECT BUTTON_SELECT
122 #define ZX_MENU BUTTON_MENU
124 #elif CONFIG_KEYPAD == IAUDIO_M3_PAD
125 #define ZX_UP BUTTON_RC_VOL_UP
126 #define ZX_DOWN BUTTON_RC_VOL_DOWN
127 #define ZX_LEFT BUTTON_RC_REW
128 #define ZX_RIGHT BUTTON_RC_FF
129 #define ZX_SELECT BUTTON_RC_PLAY
130 #define ZX_MENU BUTTON_RC_REC
132 #elif CONFIG_KEYPAD == COWON_D2_PAD
133 #define ZX_MENU (BUTTON_MENU|BUTTON_REL)
135 #elif CONFIG_KEYPAD == IAUDIO67_PAD
136 #define ZX_UP BUTTON_STOP
137 #define ZX_DOWN BUTTON_PLAY
138 #define ZX_LEFT BUTTON_LEFT
139 #define ZX_RIGHT BUTTON_RIGHT
140 #define ZX_SELECT BUTTON_VOLUP
141 #define ZX_MENU BUTTON_MENU
143 #elif CONFIG_KEYPAD == CREATIVEZVM_PAD
144 #define ZX_UP BUTTON_UP
145 #define ZX_DOWN BUTTON_DOWN
146 #define ZX_LEFT BUTTON_LEFT
147 #define ZX_RIGHT BUTTON_RIGHT
148 #define ZX_SELECT BUTTON_SELECT
149 #define ZX_MENU BUTTON_MENU
151 #elif CONFIG_KEYPAD == PHILIPS_HDD1630_PAD
153 #define ZX_UP BUTTON_UP
154 #define ZX_DOWN BUTTON_DOWN
155 #define ZX_LEFT BUTTON_LEFT
156 #define ZX_RIGHT BUTTON_RIGHT
157 #define ZX_SELECT BUTTON_SELECT
158 #define ZX_MENU BUTTON_MENU
160 #elif CONFIG_KEYPAD == PHILIPS_SA9200_PAD
161 #define ZX_UP BUTTON_UP
162 #define ZX_DOWN BUTTON_DOWN
163 #define ZX_LEFT BUTTON_PREV
164 #define ZX_RIGHT BUTTON_NEXT
165 #define ZX_SELECT BUTTON_RIGHT
166 #define ZX_MENU BUTTON_MENU
168 #elif CONFIG_KEYPAD == ONDAVX747_PAD
169 #define ZX_MENU (BUTTON_MENU|BUTTON_REL)
171 #elif CONFIG_KEYPAD == ONDAVX777_PAD
172 #define ZX_MENU BUTTON_POWER
174 #elif CONFIG_KEYPAD == SAMSUNG_YH_PAD
176 #define ZX_UP BUTTON_UP
177 #define ZX_DOWN BUTTON_DOWN
178 #define ZX_LEFT BUTTON_LEFT
179 #define ZX_RIGHT BUTTON_RIGHT
180 #define ZX_SELECT BUTTON_PLAY
181 #define ZX_MENU BUTTON_FFWD
183 #elif CONFIG_KEYPAD == PBELL_VIBE500_PAD
185 #define ZX_UP BUTTON_UP
186 #define ZX_DOWN BUTTON_DOWN
187 #define ZX_LEFT BUTTON_PREV
188 #define ZX_RIGHT BUTTON_NEXT
189 #define ZX_SELECT BUTTON_OK
190 #define ZX_MENU BUTTON_MENU
192 #elif CONFIG_KEYPAD == MPIO_HD200_PAD
194 #define ZX_MENU (BUTTON_REC|BUTTON_PLAY)
195 #define ZX_UP BUTTON_PREV
196 #define ZX_DOWN BUTTON_NEXT
197 #define ZX_SELECT BUTTON_SELECT
198 #define ZX_LEFT BUTTON_VOL_DOWN
199 #define ZX_RIGHT BUTTON_VOL_UP
201 #else
202 #error Keymap not defined!
204 #endif
206 #ifdef HAVE_TOUCHSCREEN
207 #ifndef ZX_UP
208 #define ZX_UP BUTTON_TOPMIDDLE
209 #endif
210 #ifndef ZX_DOWN
211 #define ZX_DOWN BUTTON_BOTTOMMIDDLE
212 #endif
213 #ifndef ZX_LEFT
214 #define ZX_LEFT BUTTON_MIDLEFT
215 #endif
216 #ifndef ZX_RIGHT
217 #define ZX_RIGHT BUTTON_MIDRIGHT
218 #endif
219 #ifndef ZX_SELECT
220 #define ZX_SELECT BUTTON_CENTER
221 #endif
222 #ifndef ZX_MENU
223 #define ZX_MENU (BUTTON_TOPLEFT|BUTTON_REL)
224 #endif
225 #endif
227 #endif