diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2009-07-18 12:58:29 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2009-07-18 12:58:29 +0000 |
commit | e409fba7f85e9ddf51e2d6a3342dbca6f667e280 (patch) | |
tree | 63d0e5689658f3a439459611a31462b1cba9fa55 /apps/plugin.c | |
parent | 06bb5ea004dacfa81e3c8e192ad2c1f95d2ad18e (diff) | |
download | rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.gz rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.zip |
Flyspray: FS#10326
Author: Tomer Shalev
Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode.
This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin
Also general HID updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r-- | apps/plugin.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c index 84200bbf05..35b4179949 100644 --- a/apps/plugin.c +++ b/apps/plugin.c | |||
@@ -51,6 +51,10 @@ | |||
51 | #include "bidi.h" | 51 | #include "bidi.h" |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) | ||
55 | #include "usbstack/usb_hid.h" | ||
56 | #endif | ||
57 | |||
54 | #ifdef SIMULATOR | 58 | #ifdef SIMULATOR |
55 | #define PREFIX(_x_) sim_ ## _x_ | 59 | #define PREFIX(_x_) sim_ ## _x_ |
56 | #else | 60 | #else |
@@ -660,6 +664,10 @@ static const struct plugin_api rockbox_api = { | |||
660 | appsversion, | 664 | appsversion, |
661 | /* new stuff at the end, sort into place next time | 665 | /* new stuff at the end, sort into place next time |
662 | the API gets incompatible */ | 666 | the API gets incompatible */ |
667 | |||
668 | #if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) | ||
669 | usb_hid_send, | ||
670 | #endif | ||
663 | }; | 671 | }; |
664 | 672 | ||
665 | int plugin_load(const char* plugin, const void* parameter) | 673 | int plugin_load(const char* plugin, const void* parameter) |