mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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:
parent
c61a75173b
commit
08fb988e87
14 changed files with 422 additions and 11 deletions
|
@ -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 */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue