summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sansa-e200v2/button-target.h
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-04-01 16:07:56 +0000
committerThomas Martitz <kugel@rockbox.org>2010-04-01 16:07:56 +0000
commitf376fd2f4aa9b27f2a6299177b4cc3c014da01f3 (patch)
treee42edd558e2deff42d3522189d92d158e861a307 /firmware/target/arm/as3525/sansa-e200v2/button-target.h
parent47dcf58e28930af8b468aa2151f1288e9ec334df (diff)
downloadrockbox-f376fd2f4aa9b27f2a6299177b4cc3c014da01f3.tar.gz
rockbox-f376fd2f4aa9b27f2a6299177b4cc3c014da01f3.tar.bz2
rockbox-f376fd2f4aa9b27f2a6299177b4cc3c014da01f3.zip
Fuzev2: Scrollwheel works like a charm :)
Move scrollwheel parsing function into separate file as it's reused. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25425 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2/button-target.h')
-rw-r--r--firmware/target/arm/as3525/sansa-e200v2/button-target.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-target.h b/firmware/target/arm/as3525/sansa-e200v2/button-target.h
index b1feb58cad..7a0e9e50f1 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/button-target.h
+++ b/firmware/target/arm/as3525/sansa-e200v2/button-target.h
@@ -31,6 +31,12 @@ bool button_hold(void);
void button_init_device(void);
int button_read_device(void);
unsigned short button_read_dbop(void);
+#define get_scrollwheel button_read_dbop
+
+#define WHEEL_REPEAT_INTERVAL (HZ/5)
+#define WHEEL_COUNTER_DIV 2
+#define ACCEL_INCREMENT 3
+#define ACCEL_SHIFT 1
/* Sandisk Sansa E200 button codes */