summaryrefslogtreecommitdiff
path: root/apps/plugin.h
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.h
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.h')
-rw-r--r--apps/plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index b0221c4..25bbeb2 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -105,7 +105,7 @@
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 31
+#define PLUGIN_API_VERSION 32
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -547,6 +547,11 @@ struct plugin_api {
the API gets incompatible */
char* (*strtok_r)(char *ptr, const char *sep, char **end);
+
+#ifdef HAVE_WHEEL_POSITION
+ int (*wheel_status)(void);
+ void (*wheel_send_events)(bool send);
+#endif
};
/* plugin header */