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.zip rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.gz rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.bz2 rockbox-e409fba7f85e9ddf51e2d6a3342dbca6f667e280.tar.xz | |
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 84200bb..35b4179 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -51,6 +51,10 @@ #include "bidi.h" #endif +#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) +#include "usbstack/usb_hid.h" +#endif + #ifdef SIMULATOR #define PREFIX(_x_) sim_ ## _x_ #else @@ -660,6 +664,10 @@ static const struct plugin_api rockbox_api = { appsversion, /* new stuff at the end, sort into place next time the API gets incompatible */ + +#if defined(HAVE_USBSTACK) && defined(USB_ENABLE_HID) + usb_hid_send, +#endif }; int plugin_load(const char* plugin, const void* parameter) |