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 | |
parent | 181dab41379e743a87319a975385f6caa3521230 (diff) |
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')
-rw-r--r-- | firmware/export/button.h | 5 | ||||
-rw-r--r-- | firmware/export/config-ipod4g.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ipodcolor.h | 3 | ||||
-rwxr-xr-x | firmware/export/config-ipodmini2g.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ipodnano.h | 3 | ||||
-rw-r--r-- | firmware/export/config-ipodvideo.h | 3 |
6 files changed, 19 insertions, 1 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 39dfbff6fa..4ff04202d5 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 diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h index 2e8c4dcc33..2b603987f4 100644 --- a/firmware/export/config-ipod4g.h +++ b/firmware/export/config-ipod4g.h @@ -112,6 +112,9 @@ /* Define this if you can detect headphones */ #define HAVE_HEADPHONE_DETECTION +/* Define this if you can read an absolute wheel position */ +#define HAVE_WHEEL_POSITION + #define BOOTFILE_EXT "ipod" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 964f103214..0bcb25b56c 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h @@ -108,6 +108,9 @@ /* Define this if you can detect headphones */ #define HAVE_HEADPHONE_DETECTION +/* Define this if you can read an absolute wheel position */ +#define HAVE_WHEEL_POSITION + #define BOOTFILE_EXT "ipod" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h index 342742ea43..bac60e3e72 100755 --- a/firmware/export/config-ipodmini2g.h +++ b/firmware/export/config-ipodmini2g.h @@ -115,6 +115,9 @@ /* Define this if you can detect headphones */ #define HAVE_HEADPHONE_DETECTION +/* Define this if you can read an absolute wheel position */ +#define HAVE_WHEEL_POSITION + #define BOOTFILE_EXT "ipod" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index 03f5b8c753..c24aa43e55 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h @@ -113,6 +113,9 @@ /* Define this if you can detect headphones */ #define HAVE_HEADPHONE_DETECTION +/* Define this if you can read an absolute wheel position */ +#define HAVE_WHEEL_POSITION + #define BOOTFILE_EXT "ipod" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index 4781a2c887..cd8f1eea11 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h @@ -113,6 +113,9 @@ /* Define this if you can detect headphones */ #define HAVE_HEADPHONE_DETECTION +/* Define this if you can read an absolute wheel position */ +#define HAVE_WHEEL_POSITION + #define BOOTFILE_EXT "ipod" #define BOOTFILE "rockbox." BOOTFILE_EXT |