From 08fb988e87b2d41830b390bae94810c4937675b5 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 23 May 2009 14:42:54 +0000 Subject: 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 --- apps/action.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/action.h') 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 */ }; -- cgit v1.2.3