diff options
author | Franklin Wei <git@fwei.tk> | 2017-09-30 20:49:18 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-09-30 20:49:18 -0400 |
commit | bb55fceb7020e3235d4b5c33976d9b9d10dc091a (patch) | |
tree | ee1860c2ce72c92e84a4f927e8e2b65c4b0f0182 /apps/plugins | |
parent | 752f7b1698a8d487675e3898aa759ae6e04484e6 (diff) | |
download | rockbox-bb55fceb7020e3235d4b5c33976d9b9d10dc091a.tar.gz rockbox-bb55fceb7020e3235d4b5c33976d9b9d10dc091a.zip |
Remove old keymaps from xworld and puzzles
They've been replaced by the one in apps/plugins/lib/
Change-Id: Icb54ec4caae1149dfddad8c754087686792a8bc2
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/puzzles/keymaps.h | 206 | ||||
-rw-r--r-- | apps/plugins/xworld/keymaps.h | 206 |
2 files changed, 0 insertions, 412 deletions
diff --git a/apps/plugins/puzzles/keymaps.h b/apps/plugins/puzzles/keymaps.h deleted file mode 100644 index 651ecca250..0000000000 --- a/apps/plugins/puzzles/keymaps.h +++ /dev/null | |||
@@ -1,206 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2014 Franklin Wei, Benjamin Brown | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ***************************************************************************/ | ||
21 | |||
22 | #ifndef _XWORLD_KEYMAPS_H | ||
23 | #define _XWORLD_KEYMAPS_H | ||
24 | |||
25 | /* Handle the "nice" targets that have directional buttons with normal names */ | ||
26 | #if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \ | ||
27 | (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \ | ||
28 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \ | ||
29 | (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \ | ||
30 | (CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD) || \ | ||
31 | (CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \ | ||
32 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | ||
33 | (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ | ||
34 | (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | ||
35 | (CONFIG_KEYPAD == SANSA_FUZE_PAD) || \ | ||
36 | (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || \ | ||
37 | (CONFIG_KEYPAD == GIGABEAT_PAD) || \ | ||
38 | (CONFIG_KEYPAD == GIGABEAT_S_PAD) || \ | ||
39 | (CONFIG_KEYPAD == SAMSUNG_YH92X_PAD) || \ | ||
40 | (CONFIG_KEYPAD == SAMSUNG_YH820_PAD) || \ | ||
41 | (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) || \ | ||
42 | (CONFIG_KEYPAD == CREATIVE_ZEN_PAD) || \ | ||
43 | (CONFIG_KEYPAD == SONY_NWZ_PAD) || \ | ||
44 | (CONFIG_KEYPAD == CREATIVEZVM_PAD) || \ | ||
45 | (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) || \ | ||
46 | (CONFIG_KEYPAD == IRIVER_H300_PAD) || \ | ||
47 | (CONFIG_KEYPAD == HM801_PAD) || \ | ||
48 | (CONFIG_KEYPAD == HM60X_PAD) | ||
49 | #define BTN_UP BUTTON_UP | ||
50 | #define BTN_DOWN BUTTON_DOWN | ||
51 | #define BTN_LEFT BUTTON_LEFT | ||
52 | #define BTN_RIGHT BUTTON_RIGHT | ||
53 | |||
54 | #if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) | ||
55 | #define BTN_UP_LEFT BUTTON_BACK | ||
56 | #define BTN_UP_RIGHT BUTTON_PLAYPAUSE | ||
57 | #define BTN_DOWN_LEFT BUTTON_BOTTOMLEFT | ||
58 | #define BTN_DOWN_RIGHT BUTTON_BOTTOMRIGHT | ||
59 | #endif | ||
60 | |||
61 | #if (CONFIG_KEYPAD == HM60X_PAD) | ||
62 | #define BTN_FIRE BUTTON_POWER | ||
63 | #define BTN_PAUSE BUTTON_SELECT | ||
64 | #endif | ||
65 | |||
66 | #if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \ | ||
67 | (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \ | ||
68 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \ | ||
69 | (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \ | ||
70 | (CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD) || \ | ||
71 | (CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \ | ||
72 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | ||
73 | (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || \ | ||
74 | (CONFIG_KEYPAD == ONDAVX747_PAD) | ||
75 | #define BTN_FIRE BUTTON_VOL_UP | ||
76 | #define BTN_PAUSE BUTTON_VOL_DOWN | ||
77 | |||
78 | #elif (CONFIG_KEYPAD == SANSA_FUZE_PAD) | ||
79 | #define BTN_FIRE BUTTON_HOME | ||
80 | #define BTN_PAUSE BUTTON_SELECT | ||
81 | |||
82 | #elif (CONFIG_KEYPAD == SAMSUNG_YH92X_PAD) | ||
83 | #define BTN_FIRE BUTTON_FFWD | ||
84 | #define BTN_PAUSE BUTTON_REW | ||
85 | |||
86 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) | ||
87 | #define BTN_FIRE BUTTON_REC | ||
88 | #define BTN_PAUSE BUTTON_POWER | ||
89 | |||
90 | #elif (CONFIG_KEYPAD == SANSA_CLIP_PAD) | ||
91 | #define BTN_FIRE BUTTON_SELECT | ||
92 | #define BTN_PAUSE BUTTON_POWER | ||
93 | |||
94 | #elif (CONFIG_KEYPAD == CREATIVE_ZEN_PAD) | ||
95 | #define BTN_FIRE BUTTON_SELECT | ||
96 | #define BTN_PAUSE BUTTON_BACK | ||
97 | |||
98 | #elif (CONFIG_KEYPAD == CREATIVEZVM_PAD) | ||
99 | #define BTN_FIRE BUTTON_PLAY | ||
100 | #define BTN_PAUSE BUTTON_MENU | ||
101 | |||
102 | #elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) | ||
103 | #define BTN_FIRE BUTTON_USER | ||
104 | #define BTN_PAUSE BUTTON_MENU | ||
105 | |||
106 | #elif (CONFIG_KEYPAD == SONY_NWZ_PAD) | ||
107 | #define BTN_FIRE BUTTON_PLAY | ||
108 | #define BTN_PAUSE BUTTON_BACK | ||
109 | |||
110 | #elif (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
111 | #define BTN_FIRE BUTTON_REC | ||
112 | #define BTN_PAUSE BUTTON_MODE | ||
113 | |||
114 | #elif (CONFIG_KEYPAD == HM801_PAD) | ||
115 | #define BTN_FIRE BUTTON_PREV | ||
116 | #define BTN_PAUSE BUTTON_NEXT | ||
117 | |||
118 | #elif (CONFIG_KEYPAD == SAMSUNG_YH820_PAD) || \ | ||
119 | (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) | ||
120 | #define BTN_FIRE BUTTON_REC | ||
121 | #define BTN_PAUSE BUTTON_PLAY | ||
122 | |||
123 | #elif (CONFIG_KEYPAD == GIGABEAT_PAD) || \ | ||
124 | (CONFIG_KEYPAD == GIGABEAT_S_PAD) | ||
125 | #define BTN_FIRE BUTTON_VOL_UP | ||
126 | #define BTN_PAUSE BUTTON_MENU | ||
127 | /* #if CONFIG_KEYPAD == PHILIPS_HDD1630_PAD */ | ||
128 | #endif | ||
129 | |||
130 | /* ... and now for the bad ones that don't have | ||
131 | * standard names for the directional buttons */ | ||
132 | #elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) | ||
133 | #define BTN_UP BUTTON_OK | ||
134 | #define BTN_DOWN BUTTON_CANCEL | ||
135 | #define BTN_LEFT BUTTON_MENU | ||
136 | #define BTN_RIGHT BUTTON_PLAY | ||
137 | #define BTN_FIRE BUTTON_POWER | ||
138 | #define BTN_PAUSE BUTTON_REC | ||
139 | |||
140 | #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) | ||
141 | #define BTN_UP BUTTON_SCROLL_UP | ||
142 | #define BTN_DOWN BUTTON_SCROLL_DOWN | ||
143 | #define BTN_LEFT BUTTON_LEFT | ||
144 | #define BTN_RIGHT BUTTON_RIGHT | ||
145 | #define BTN_FIRE BUTTON_REW | ||
146 | #define BTN_PAUSE BUTTON_PLAY | ||
147 | |||
148 | #elif (CONFIG_KEYPAD == MROBE500_PAD) | ||
149 | #define BTN_FIRE BUTTON_POWER | ||
150 | |||
151 | #elif (CONFIG_KEYPAD == MROBE_REMOTE) | ||
152 | #define BTN_UP BUTTON_RC_PLAY | ||
153 | #define BTN_DOWN BUTTON_RC_DOWN | ||
154 | #define BTN_LEFT BUTTON_RC_REW | ||
155 | #define BTN_RIGHT BUTTON_RC_FF | ||
156 | |||
157 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | ||
158 | (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | ||
159 | (CONFIG_KEYPAD == IPOD_1G2G_PAD) | ||
160 | #define BTN_UP BUTTON_MENU | ||
161 | #define BTN_DOWN BUTTON_PLAY | ||
162 | #define BTN_LEFT BUTTON_LEFT | ||
163 | #define BTN_RIGHT BUTTON_RIGHT | ||
164 | #define BTN_FIRE BUTTON_SELECT | ||
165 | #define BTN_PAUSE (BUTTON_MENU | BUTTON_SELECT) | ||
166 | |||
167 | #elif (CONFIG_KEYPAD == ONDAVX777_PAD) | ||
168 | #define BTN_FIRE BUTTON_POWER | ||
169 | |||
170 | #elif (CONFIG_KEYPAD == COWON_D2_PAD) | ||
171 | #define BTN_FIRE BUTTON_PLUS | ||
172 | #define BTN_PAUSE BUTTON_MINUS | ||
173 | |||
174 | #elif (CONFIG_KEYPAD == ONDAVX747_PAD) || \ | ||
175 | (CONFIG_KEYPAD == DX50_PAD) | ||
176 | #define BTN_LEFT BUTTON_LEFT | ||
177 | #define BTN_RIGHT BUTTON_RIGHT | ||
178 | #define BTN_FIRE BUTTON_BOTTOMLEFT | ||
179 | #define BTN_PAUSE BUTTON_TOPLEFT | ||
180 | |||
181 | #else | ||
182 | #error Unsupported keypad | ||
183 | #endif | ||
184 | |||
185 | #ifdef HAVE_TOUCHSCREEN | ||
186 | #define BTN_UP BUTTON_TOPMIDDLE | ||
187 | #define BTN_DOWN BUTTON_BOTTOMMIDDLE | ||
188 | #define BTN_LEFT BUTTON_LEFT | ||
189 | #define BTN_RIGHT BUTTON_RIGHT | ||
190 | |||
191 | #if (CONFIG_KEYPAD == MROBE500_PAD) || \ | ||
192 | (CONFIG_KEYPAD == ONDAVX777_PAD) | ||
193 | #define BTN_PAUSE BUTTON_BOTTOMLEFT | ||
194 | |||
195 | #elif (CONFIG_KEYPAD != COWON_D2_PAD) && \ | ||
196 | (CONFIG_KEYPAD != DX50_PAD) && \ | ||
197 | (CONFIG_KEYPAD != ONDAVX777_PAD) | ||
198 | #define BTN_FIRE BUTTON_BOTTOMLEFT | ||
199 | #define BTN_PAUSE BUTTON_TOPLEFT | ||
200 | #endif | ||
201 | |||
202 | /* HAVE_TOUCHSCREEN */ | ||
203 | #endif | ||
204 | |||
205 | /* _XWORLD_KEYMAPS_H */ | ||
206 | #endif | ||
diff --git a/apps/plugins/xworld/keymaps.h b/apps/plugins/xworld/keymaps.h deleted file mode 100644 index 651ecca250..0000000000 --- a/apps/plugins/xworld/keymaps.h +++ /dev/null | |||
@@ -1,206 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2014 Franklin Wei, Benjamin Brown | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ***************************************************************************/ | ||
21 | |||
22 | #ifndef _XWORLD_KEYMAPS_H | ||
23 | #define _XWORLD_KEYMAPS_H | ||
24 | |||
25 | /* Handle the "nice" targets that have directional buttons with normal names */ | ||
26 | #if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \ | ||
27 | (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \ | ||
28 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \ | ||
29 | (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \ | ||
30 | (CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD) || \ | ||
31 | (CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \ | ||
32 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | ||
33 | (CONFIG_KEYPAD == SANSA_CLIP_PAD) || \ | ||
34 | (CONFIG_KEYPAD == SANSA_E200_PAD) || \ | ||
35 | (CONFIG_KEYPAD == SANSA_FUZE_PAD) || \ | ||
36 | (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || \ | ||
37 | (CONFIG_KEYPAD == GIGABEAT_PAD) || \ | ||
38 | (CONFIG_KEYPAD == GIGABEAT_S_PAD) || \ | ||
39 | (CONFIG_KEYPAD == SAMSUNG_YH92X_PAD) || \ | ||
40 | (CONFIG_KEYPAD == SAMSUNG_YH820_PAD) || \ | ||
41 | (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) || \ | ||
42 | (CONFIG_KEYPAD == CREATIVE_ZEN_PAD) || \ | ||
43 | (CONFIG_KEYPAD == SONY_NWZ_PAD) || \ | ||
44 | (CONFIG_KEYPAD == CREATIVEZVM_PAD) || \ | ||
45 | (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) || \ | ||
46 | (CONFIG_KEYPAD == IRIVER_H300_PAD) || \ | ||
47 | (CONFIG_KEYPAD == HM801_PAD) || \ | ||
48 | (CONFIG_KEYPAD == HM60X_PAD) | ||
49 | #define BTN_UP BUTTON_UP | ||
50 | #define BTN_DOWN BUTTON_DOWN | ||
51 | #define BTN_LEFT BUTTON_LEFT | ||
52 | #define BTN_RIGHT BUTTON_RIGHT | ||
53 | |||
54 | #if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) | ||
55 | #define BTN_UP_LEFT BUTTON_BACK | ||
56 | #define BTN_UP_RIGHT BUTTON_PLAYPAUSE | ||
57 | #define BTN_DOWN_LEFT BUTTON_BOTTOMLEFT | ||
58 | #define BTN_DOWN_RIGHT BUTTON_BOTTOMRIGHT | ||
59 | #endif | ||
60 | |||
61 | #if (CONFIG_KEYPAD == HM60X_PAD) | ||
62 | #define BTN_FIRE BUTTON_POWER | ||
63 | #define BTN_PAUSE BUTTON_SELECT | ||
64 | #endif | ||
65 | |||
66 | #if (CONFIG_KEYPAD == PHILIPS_HDD1630_PAD) || \ | ||
67 | (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD) || \ | ||
68 | (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \ | ||
69 | (CONFIG_KEYPAD == CREATIVE_ZENXFI2_PAD) || \ | ||
70 | (CONFIG_KEYPAD == CREATIVE_ZENXFI3_PAD) || \ | ||
71 | (CONFIG_KEYPAD == SANSA_CONNECT_PAD) || \ | ||
72 | (CONFIG_KEYPAD == SANSA_C200_PAD) || \ | ||
73 | (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD) || \ | ||
74 | (CONFIG_KEYPAD == ONDAVX747_PAD) | ||
75 | #define BTN_FIRE BUTTON_VOL_UP | ||
76 | #define BTN_PAUSE BUTTON_VOL_DOWN | ||
77 | |||
78 | #elif (CONFIG_KEYPAD == SANSA_FUZE_PAD) | ||
79 | #define BTN_FIRE BUTTON_HOME | ||
80 | #define BTN_PAUSE BUTTON_SELECT | ||
81 | |||
82 | #elif (CONFIG_KEYPAD == SAMSUNG_YH92X_PAD) | ||
83 | #define BTN_FIRE BUTTON_FFWD | ||
84 | #define BTN_PAUSE BUTTON_REW | ||
85 | |||
86 | #elif (CONFIG_KEYPAD == SANSA_E200_PAD) | ||
87 | #define BTN_FIRE BUTTON_REC | ||
88 | #define BTN_PAUSE BUTTON_POWER | ||
89 | |||
90 | #elif (CONFIG_KEYPAD == SANSA_CLIP_PAD) | ||
91 | #define BTN_FIRE BUTTON_SELECT | ||
92 | #define BTN_PAUSE BUTTON_POWER | ||
93 | |||
94 | #elif (CONFIG_KEYPAD == CREATIVE_ZEN_PAD) | ||
95 | #define BTN_FIRE BUTTON_SELECT | ||
96 | #define BTN_PAUSE BUTTON_BACK | ||
97 | |||
98 | #elif (CONFIG_KEYPAD == CREATIVEZVM_PAD) | ||
99 | #define BTN_FIRE BUTTON_PLAY | ||
100 | #define BTN_PAUSE BUTTON_MENU | ||
101 | |||
102 | #elif (CONFIG_KEYPAD == SAMSUNG_YPR0_PAD) | ||
103 | #define BTN_FIRE BUTTON_USER | ||
104 | #define BTN_PAUSE BUTTON_MENU | ||
105 | |||
106 | #elif (CONFIG_KEYPAD == SONY_NWZ_PAD) | ||
107 | #define BTN_FIRE BUTTON_PLAY | ||
108 | #define BTN_PAUSE BUTTON_BACK | ||
109 | |||
110 | #elif (CONFIG_KEYPAD == IRIVER_H300_PAD) | ||
111 | #define BTN_FIRE BUTTON_REC | ||
112 | #define BTN_PAUSE BUTTON_MODE | ||
113 | |||
114 | #elif (CONFIG_KEYPAD == HM801_PAD) | ||
115 | #define BTN_FIRE BUTTON_PREV | ||
116 | #define BTN_PAUSE BUTTON_NEXT | ||
117 | |||
118 | #elif (CONFIG_KEYPAD == SAMSUNG_YH820_PAD) || \ | ||
119 | (CONFIG_KEYPAD == IAUDIO_X5M5_PAD) | ||
120 | #define BTN_FIRE BUTTON_REC | ||
121 | #define BTN_PAUSE BUTTON_PLAY | ||
122 | |||
123 | #elif (CONFIG_KEYPAD == GIGABEAT_PAD) || \ | ||
124 | (CONFIG_KEYPAD == GIGABEAT_S_PAD) | ||
125 | #define BTN_FIRE BUTTON_VOL_UP | ||
126 | #define BTN_PAUSE BUTTON_MENU | ||
127 | /* #if CONFIG_KEYPAD == PHILIPS_HDD1630_PAD */ | ||
128 | #endif | ||
129 | |||
130 | /* ... and now for the bad ones that don't have | ||
131 | * standard names for the directional buttons */ | ||
132 | #elif (CONFIG_KEYPAD == PBELL_VIBE500_PAD) | ||
133 | #define BTN_UP BUTTON_OK | ||
134 | #define BTN_DOWN BUTTON_CANCEL | ||
135 | #define BTN_LEFT BUTTON_MENU | ||
136 | #define BTN_RIGHT BUTTON_PLAY | ||
137 | #define BTN_FIRE BUTTON_POWER | ||
138 | #define BTN_PAUSE BUTTON_REC | ||
139 | |||
140 | #elif (CONFIG_KEYPAD == IRIVER_H10_PAD) | ||
141 | #define BTN_UP BUTTON_SCROLL_UP | ||
142 | #define BTN_DOWN BUTTON_SCROLL_DOWN | ||
143 | #define BTN_LEFT BUTTON_LEFT | ||
144 | #define BTN_RIGHT BUTTON_RIGHT | ||
145 | #define BTN_FIRE BUTTON_REW | ||
146 | #define BTN_PAUSE BUTTON_PLAY | ||
147 | |||
148 | #elif (CONFIG_KEYPAD == MROBE500_PAD) | ||
149 | #define BTN_FIRE BUTTON_POWER | ||
150 | |||
151 | #elif (CONFIG_KEYPAD == MROBE_REMOTE) | ||
152 | #define BTN_UP BUTTON_RC_PLAY | ||
153 | #define BTN_DOWN BUTTON_RC_DOWN | ||
154 | #define BTN_LEFT BUTTON_RC_REW | ||
155 | #define BTN_RIGHT BUTTON_RC_FF | ||
156 | |||
157 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | ||
158 | (CONFIG_KEYPAD == IPOD_3G_PAD) || \ | ||
159 | (CONFIG_KEYPAD == IPOD_1G2G_PAD) | ||
160 | #define BTN_UP BUTTON_MENU | ||
161 | #define BTN_DOWN BUTTON_PLAY | ||
162 | #define BTN_LEFT BUTTON_LEFT | ||
163 | #define BTN_RIGHT BUTTON_RIGHT | ||
164 | #define BTN_FIRE BUTTON_SELECT | ||
165 | #define BTN_PAUSE (BUTTON_MENU | BUTTON_SELECT) | ||
166 | |||
167 | #elif (CONFIG_KEYPAD == ONDAVX777_PAD) | ||
168 | #define BTN_FIRE BUTTON_POWER | ||
169 | |||
170 | #elif (CONFIG_KEYPAD == COWON_D2_PAD) | ||
171 | #define BTN_FIRE BUTTON_PLUS | ||
172 | #define BTN_PAUSE BUTTON_MINUS | ||
173 | |||
174 | #elif (CONFIG_KEYPAD == ONDAVX747_PAD) || \ | ||
175 | (CONFIG_KEYPAD == DX50_PAD) | ||
176 | #define BTN_LEFT BUTTON_LEFT | ||
177 | #define BTN_RIGHT BUTTON_RIGHT | ||
178 | #define BTN_FIRE BUTTON_BOTTOMLEFT | ||
179 | #define BTN_PAUSE BUTTON_TOPLEFT | ||
180 | |||
181 | #else | ||
182 | #error Unsupported keypad | ||
183 | #endif | ||
184 | |||
185 | #ifdef HAVE_TOUCHSCREEN | ||
186 | #define BTN_UP BUTTON_TOPMIDDLE | ||
187 | #define BTN_DOWN BUTTON_BOTTOMMIDDLE | ||
188 | #define BTN_LEFT BUTTON_LEFT | ||
189 | #define BTN_RIGHT BUTTON_RIGHT | ||
190 | |||
191 | #if (CONFIG_KEYPAD == MROBE500_PAD) || \ | ||
192 | (CONFIG_KEYPAD == ONDAVX777_PAD) | ||
193 | #define BTN_PAUSE BUTTON_BOTTOMLEFT | ||
194 | |||
195 | #elif (CONFIG_KEYPAD != COWON_D2_PAD) && \ | ||
196 | (CONFIG_KEYPAD != DX50_PAD) && \ | ||
197 | (CONFIG_KEYPAD != ONDAVX777_PAD) | ||
198 | #define BTN_FIRE BUTTON_BOTTOMLEFT | ||
199 | #define BTN_PAUSE BUTTON_TOPLEFT | ||
200 | #endif | ||
201 | |||
202 | /* HAVE_TOUCHSCREEN */ | ||
203 | #endif | ||
204 | |||
205 | /* _XWORLD_KEYMAPS_H */ | ||
206 | #endif | ||