summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-11-19 11:05:54 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-11-19 11:05:54 +0000
commite75327b33249cb2656281af2bd5368fe0edd2d48 (patch)
tree80037d0f7a7420886b678a195ce2bbb90deba951 /firmware/export
parenta8c020288c729f077b067f45f92a47bca56caae1 (diff)
downloadrockbox-e75327b33249cb2656281af2bd5368fe0edd2d48.zip
rockbox-e75327b33249cb2656281af2bd5368fe0edd2d48.tar.gz
rockbox-e75327b33249cb2656281af2bd5368fe0edd2d48.tar.bz2
rockbox-e75327b33249cb2656281af2bd5368fe0edd2d48.tar.xz
FS#7738 - Scroll wheel acceleration for iPod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15681 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/button.h2
-rw-r--r--firmware/export/config-e200.h7
-rw-r--r--firmware/export/config-ipod4g.h7
-rw-r--r--firmware/export/config-ipodcolor.h7
-rw-r--r--firmware/export/config-ipodmini2g.h7
-rw-r--r--firmware/export/config-ipodnano.h7
-rw-r--r--firmware/export/config-ipodvideo.h7
7 files changed, 40 insertions, 4 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h
index a38385c..f50f3dd 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -52,7 +52,7 @@ void wheel_send_events(bool send);
#endif
#ifdef HAVE_SCROLLWHEEL
-int button_apply_acceleration(unsigned int data, unsigned int factor);
+int button_apply_acceleration(const unsigned int data);
#endif
#define BUTTON_NONE 0x00000000
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h
index e2274bc..f5ba8f0 100644
--- a/firmware/export/config-e200.h
+++ b/firmware/export/config-e200.h
@@ -100,9 +100,10 @@
/* define this if the unit uses a scrollwheel for navigation */
#define HAVE_SCROLLWHEEL
-/* define wheel acceleration scaling factor */
-/* Range for this target: 0xffffff*(0.0-16.000000894069724921567733381255) */
-#define WHEEL_ACCELERATION_FACTOR (0xffffff*7)
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 540
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 1
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h
index fc28050..7ed7901 100644
--- a/firmware/export/config-ipod4g.h
+++ b/firmware/export/config-ipod4g.h
@@ -86,6 +86,13 @@
/* Define this for LCD backlight available */
#define HAVE_BACKLIGHT
+/* define this if the unit uses a scrollwheel for navigation */
+#define HAVE_SCROLLWHEEL
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 270
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 3
+
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 0aba8c3..25a7fb3 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -73,6 +73,13 @@
/* Define this for LCD backlight available */
#define HAVE_BACKLIGHT
+/* define this if the unit uses a scrollwheel for navigation */
+#define HAVE_SCROLLWHEEL
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 270
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 3
+
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index 5dd2293..0d3dceb 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -83,6 +83,13 @@
/* We can fade the backlight by using PWM */
#define HAVE_BACKLIGHT_PWM_FADING
+/* define this if the unit uses a scrollwheel for navigation */
+#define HAVE_SCROLLWHEEL
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 270
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 3
+
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 6909561..27e1594 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -82,6 +82,13 @@
/* We can fade the backlight by using PWM */
#define HAVE_BACKLIGHT_PWM_FADING
+/* define this if the unit uses a scrollwheel for navigation */
+#define HAVE_SCROLLWHEEL
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 270
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 3
+
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index 60a5dd8..c66f6d9 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -82,6 +82,13 @@
/* We can fade the backlight by using PWM */
#define HAVE_BACKLIGHT_PWM_FADING
+/* define this if the unit uses a scrollwheel for navigation */
+#define HAVE_SCROLLWHEEL
+/* define from which rotation speed [degree/sec] on the acceleration starts */
+#define WHEEL_ACCEL_START 270
+/* define type of acceleration (1 = ^2, 2 = ^3, 3 = ^4) */
+#define WHEEL_ACCELERATION 3
+
/* Define this if you can detect headphones */
#define HAVE_HEADPHONE_DETECTION