summaryrefslogtreecommitdiff
path: root/apps/plugin.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-09-26 19:25:52 +0000
committerDave Chapman <dave@dchapman.com>2006-09-26 19:25:52 +0000
commit491458e418ba443b42167b6fc4c4933d72883f47 (patch)
treeb02968aa4860bf3011ae0f6baa378fdc21af0a70 /apps/plugin.c
parent181dab41379e743a87319a975385f6caa3521230 (diff)
downloadrockbox-491458e418ba443b42167b6fc4c4933d72883f47.zip
rockbox-491458e418ba443b42167b6fc4c4933d72883f47.tar.gz
rockbox-491458e418ba443b42167b6fc4c4933d72883f47.tar.bz2
rockbox-491458e418ba443b42167b6fc4c4933d72883f47.tar.xz
Add wheel_status() function to the ipod "4g" button driver (i.e. all ipods excluding the 3G and 1st gen mini) to read the absolute position the wheel is being touched (0..95 - clockwise from top, or -1 for untouched), plus the wheel_send_events(bool) function to disable/enable sending normal scrolling events - based on patch #4721 from Mikael Magnusson.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11068 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.c')
-rw-r--r--apps/plugin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 04a4d1c..a908016 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -468,6 +468,10 @@ static const struct plugin_api rockbox_api = {
the API gets incompatible */
strtok_r,
+#ifdef HAVE_WHEEL_POSITION
+ wheel_status,
+ wheel_send_events,
+#endif
};
int plugin_load(const char* plugin, void* parameter)