diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-05-23 14:42:54 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-05-23 14:42:54 +0000 |
commit | 08fb988e87b2d41830b390bae94810c4937675b5 (patch) | |
tree | 8467923d53d211afdf8e9fc94e3e9e39f877ada7 /apps/action.h | |
parent | c61a75173b2e81ea3ae3aa1d3cdf84d15e4304c3 (diff) | |
download | rockbox-08fb988e87b2d41830b390bae94810c4937675b5.tar.gz rockbox-08fb988e87b2d41830b390bae94810c4937675b5.zip |
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
Diffstat (limited to 'apps/action.h')
-rw-r--r-- | apps/action.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/action.h b/apps/action.h index bd215debb8..9869fb30b1 100644 --- a/apps/action.h +++ b/apps/action.h | |||
@@ -74,6 +74,7 @@ enum { | |||
74 | CONTEXT_RECSCREEN, | 74 | CONTEXT_RECSCREEN, |
75 | CONTEXT_KEYBOARD, | 75 | CONTEXT_KEYBOARD, |
76 | CONTEXT_FM, | 76 | CONTEXT_FM, |
77 | CONTEXT_USB_HID, | ||
77 | }; | 78 | }; |
78 | 79 | ||
79 | 80 | ||
@@ -237,6 +238,15 @@ enum { | |||
237 | ACTION_TOUCH_REPMODE, | 238 | ACTION_TOUCH_REPMODE, |
238 | #endif | 239 | #endif |
239 | 240 | ||
241 | /* USB HID codes */ | ||
242 | ACTION_USB_HID_PLAY, | ||
243 | ACTION_USB_HID_STOP, | ||
244 | ACTION_USB_HID_SKIPPREV, | ||
245 | ACTION_USB_HID_SKIPNEXT, | ||
246 | ACTION_USB_HID_VOLDOWN, | ||
247 | ACTION_USB_HID_VOLUP, | ||
248 | ACTION_USB_HID_MUTE, | ||
249 | ACTION_USB_HID_MENU, | ||
240 | 250 | ||
241 | LAST_ACTION_PLACEHOLDER, /* custom actions should be this + something */ | 251 | LAST_ACTION_PLACEHOLDER, /* custom actions should be this + something */ |
242 | }; | 252 | }; |