Add HID keymap handling in usb screen. This allows to use the DAP as a keypad to control the PC. The current keymaps are audio-oriented (play/pause/volume/...) (FS#10218 by Tomer Shalev)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21054 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2009-05-23 14:42:54 +00:00
parent c61a75173b
commit 08fb988e87
14 changed files with 422 additions and 11 deletions

View file

@ -74,6 +74,7 @@ enum {
CONTEXT_RECSCREEN,
CONTEXT_KEYBOARD,
CONTEXT_FM,
CONTEXT_USB_HID,
};
@ -237,6 +238,15 @@ enum {
ACTION_TOUCH_REPMODE,
#endif
/* USB HID codes */
ACTION_USB_HID_PLAY,
ACTION_USB_HID_STOP,
ACTION_USB_HID_SKIPPREV,
ACTION_USB_HID_SKIPNEXT,
ACTION_USB_HID_VOLDOWN,
ACTION_USB_HID_VOLUP,
ACTION_USB_HID_MUTE,
ACTION_USB_HID_MENU,
LAST_ACTION_PLACEHOLDER, /* custom actions should be this + something */
};