From 4f3d7b5bcb0b025332e128c3856aa9d4cce91898 Mon Sep 17 00:00:00 2001 From: Tomer Shalev Date: Sat, 17 Oct 2009 05:39:54 +0000 Subject: USB HID: Use different context for each mode; Use constant for each action; Rework keymaps This commit makes the code neater and more readable. It makes it easier to modify keymap assignments and new keypad modes. Some platforms had their keypad mappings reworked. The manual is updated to reflect all these changes. H10 remote control mapping dropped. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23219 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index 3917f31a96..eb34103a4a 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -115,8 +115,8 @@ static int handle_usb_events(void) button = get_hid_usb_action(); /* On mode change, we need to refresh the screen */ - if (button == ACTION_USB_HID_MODE || - button == ACTION_USB_HID_MODE_LONG) + if (button == ACTION_USB_HID_MODE_SWITCH_NEXT || + button == ACTION_USB_HID_MODE_SWITCH_PREV) { break; } -- cgit v1.2.3