From dfd32efc639400dbe4f6d63f6de64edde6f4da36 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Thu, 26 Feb 2009 22:05:34 +0000 Subject: 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 --- apps/keymaps/keymap-touchscreen.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'apps/keymaps/keymap-touchscreen.c') 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[] = { const struct button_mapping* get_context_mapping(int context) { - if ((context&CONTEXT_REMOTE) || (context&CONTEXT_CUSTOM2)) - return target_get_context_mapping(context&(~CONTEXT_CUSTOM2)); + if (context & CONTEXT_CUSTOM2 +#if BUTTON_REMOTE != 0 + || context & CONTEXT_REMOTE +#endif + ) + return target_get_context_mapping(context & ~CONTEXT_CUSTOM2); switch (context) { -- cgit v1.2.3