diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-04-01 16:07:56 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-04-01 16:07:56 +0000 |
commit | f376fd2f4aa9b27f2a6299177b4cc3c014da01f3 (patch) | |
tree | e42edd558e2deff42d3522189d92d158e861a307 /firmware/target/arm/as3525/sansa-fuzev2/button-target.h | |
parent | 47dcf58e28930af8b468aa2151f1288e9ec334df (diff) | |
download | rockbox-f376fd2f4aa9b27f2a6299177b4cc3c014da01f3.tar.gz 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-fuzev2/button-target.h')
-rw-r--r-- | firmware/target/arm/as3525/sansa-fuzev2/button-target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuzev2/button-target.h b/firmware/target/arm/as3525/sansa-fuzev2/button-target.h index 6dcd37460a..14f3db18f7 100644 --- a/firmware/target/arm/as3525/sansa-fuzev2/button-target.h +++ b/firmware/target/arm/as3525/sansa-fuzev2/button-target.h | |||
@@ -31,6 +31,12 @@ void button_init_device(void); | |||
31 | bool button_hold(void); | 31 | bool button_hold(void); |
32 | int button_read_device(void); | 32 | int button_read_device(void); |
33 | unsigned short button_read_dbop(void); | 33 | unsigned short button_read_dbop(void); |
34 | void get_scrollwheel(void); | ||
35 | |||
36 | #define WHEEL_REPEAT_INTERVAL (HZ/5) | ||
37 | #define WHEEL_COUNTER_DIV 4 | ||
38 | #define ACCEL_INCREMENT 2 | ||
39 | #define ACCEL_SHIFT 2 | ||
34 | /* Sandisk Sansa Fuze button codes */ | 40 | /* Sandisk Sansa Fuze button codes */ |
35 | 41 | ||
36 | /* Main unit's buttons */ | 42 | /* Main unit's buttons */ |