summaryrefslogtreecommitdiffstats
path: root/apps/action.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2009-05-23 14:42:54 +0000
committerFrank Gevaerts <frank@gevaerts.be>2009-05-23 14:42:54 +0000
commit08fb988e87b2d41830b390bae94810c4937675b5 (patch)
tree8467923d53d211afdf8e9fc94e3e9e39f877ada7 /apps/action.h
parentc61a75173b2e81ea3ae3aa1d3cdf84d15e4304c3 (diff)
downloadrockbox-08fb988e87b2d41830b390bae94810c4937675b5.tar.gz
rockbox-08fb988e87b2d41830b390bae94810c4937675b5.tar.bz2
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.h10
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 {
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 */
};