diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-26 22:05:34 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-02-26 22:05:34 +0000 |
commit | dfd32efc639400dbe4f6d63f6de64edde6f4da36 (patch) | |
tree | a932bf6b3cfdffd8d61c4d5bf87ff002b58f089c /apps/keymaps/keymap-touchscreen.c | |
parent | 5e058e0bfe9f575d56f8907bf4bc96ac4e315dcb (diff) | |
download | rockbox-dfd32efc639400dbe4f6d63f6de64edde6f4da36.tar.gz rockbox-dfd32efc639400dbe4f6d63f6de64edde6f4da36.zip |
Onda VX747: redo keymap (which fixes the not-working emulated touchscreen buttons). Also make check for & CONTEXT_REMOTE conditional in keymap-touchscreen
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20120 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps/keymap-touchscreen.c')
-rw-r--r-- | apps/keymaps/keymap-touchscreen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/keymaps/keymap-touchscreen.c b/apps/keymaps/keymap-touchscreen.c index 5392431026..4b31ac6c5d 100644 --- a/apps/keymaps/keymap-touchscreen.c +++ b/apps/keymaps/keymap-touchscreen.c | |||
@@ -224,8 +224,12 @@ static const struct button_mapping button_context_keyboard[] = { | |||
224 | 224 | ||
225 | const struct button_mapping* get_context_mapping(int context) | 225 | const struct button_mapping* get_context_mapping(int context) |
226 | { | 226 | { |
227 | if ((context&CONTEXT_REMOTE) || (context&CONTEXT_CUSTOM2)) | 227 | if (context & CONTEXT_CUSTOM2 |
228 | return target_get_context_mapping(context&(~CONTEXT_CUSTOM2)); | 228 | #if BUTTON_REMOTE != 0 |
229 | || context & CONTEXT_REMOTE | ||
230 | #endif | ||
231 | ) | ||
232 | return target_get_context_mapping(context & ~CONTEXT_CUSTOM2); | ||
229 | 233 | ||
230 | switch (context) | 234 | switch (context) |
231 | { | 235 | { |