diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-17 05:39:54 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2009-10-17 05:39:54 +0000 |
commit | 4f3d7b5bcb0b025332e128c3856aa9d4cce91898 (patch) | |
tree | ac2f783e9585c476fbaa9dfaf3a7a34e826f7ccc /apps/screens.c | |
parent | 6d4d44caf69e06ea51937da9c74e78af0ac99a62 (diff) | |
download | rockbox-4f3d7b5bcb0b025332e128c3856aa9d4cce91898.tar.gz rockbox-4f3d7b5bcb0b025332e128c3856aa9d4cce91898.zip |
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
Diffstat (limited to 'apps/screens.c')
-rw-r--r-- | apps/screens.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
115 | button = get_hid_usb_action(); | 115 | button = get_hid_usb_action(); |
116 | 116 | ||
117 | /* On mode change, we need to refresh the screen */ | 117 | /* On mode change, we need to refresh the screen */ |
118 | if (button == ACTION_USB_HID_MODE || | 118 | if (button == ACTION_USB_HID_MODE_SWITCH_NEXT || |
119 | button == ACTION_USB_HID_MODE_LONG) | 119 | button == ACTION_USB_HID_MODE_SWITCH_PREV) |
120 | { | 120 | { |
121 | break; | 121 | break; |
122 | } | 122 | } |