diff options
| author | Dave Chapman <dave@dchapman.com> | 2006-09-26 19:25:52 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2006-09-26 19:25:52 +0000 |
| commit | 491458e418ba443b42167b6fc4c4933d72883f47 (patch) | |
| tree | b02968aa4860bf3011ae0f6baa378fdc21af0a70 /firmware/export/button.h | |
| parent | 181dab41379e743a87319a975385f6caa3521230 (diff) | |
| download | rockbox-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 'firmware/export/button.h')
| -rw-r--r-- | firmware/export/button.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 39dfbff..4ff0420 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h @@ -57,7 +57,10 @@ bool remote_button_hold(void); #ifdef HAVE_HEADPHONE_DETECTION bool headphones_inserted(void); #endif - +#ifdef HAVE_WHEEL_POSITION +int wheel_status(void); +void wheel_send_events(bool send); +#endif #define BUTTON_NONE 0x00000000 |