diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-04-05 13:00:05 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-04-05 15:01:59 +0200 |
commit | bb0e4cc543e4c7bed6dff3a41d092b6867632535 (patch) | |
tree | a62dca3c50fa09cfe609df088e9eee9bf2ac2853 /firmware/export/button.h | |
parent | f458888a4c4fd8601ff4690388e2fc06fecb9fc2 (diff) | |
download | rockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.tar.gz rockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.zip |
touchscreen: Fix kinetic scrolling when the statusbar is off.
The scrolling code cannot differentiate between the BUTTON_TOUCHSCREEN post
from normal touches and the one posted in the timeout callback.
To fix introduce a global special button (BUTTON_REDRAW) that results
in the desired redraw. This existed already as a local kludge for android
and is now generalized.
Change-Id: I6bfa6c66431c48f5042fcd8fce2ea72cd3457f58
Diffstat (limited to 'firmware/export/button.h')
-rw-r--r-- | firmware/export/button.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/firmware/export/button.h b/firmware/export/button.h index 3f6052a309..6276a033cc 100644 --- a/firmware/export/button.h +++ b/firmware/export/button.h | |||
@@ -81,13 +81,15 @@ void wheel_send_events(bool send); | |||
81 | int button_apply_acceleration(const unsigned int data); | 81 | int button_apply_acceleration(const unsigned int data); |
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | #define BUTTON_NONE 0x00000000 | 84 | #define BUTTON_NONE 0x00000000 |
85 | 85 | ||
86 | /* Button modifiers */ | 86 | /* Button modifiers */ |
87 | #define BUTTON_REL 0x02000000 | 87 | #define BUTTON_REL 0x02000000 |
88 | #define BUTTON_REPEAT 0x04000000 | 88 | #define BUTTON_REPEAT 0x04000000 |
89 | #define BUTTON_TOUCHSCREEN 0x08000000 | 89 | /* Special buttons */ |
90 | #define BUTTON_MULTIMEDIA 0x10000000 | 90 | #define BUTTON_TOUCHSCREEN 0x08000000 |
91 | #define BUTTON_MULTIMEDIA 0x10000000 | ||
92 | #define BUTTON_REDRAW 0x20000000 | ||
91 | 93 | ||
92 | #define BUTTON_MULTIMEDIA_PLAYPAUSE (BUTTON_MULTIMEDIA|0x01) | 94 | #define BUTTON_MULTIMEDIA_PLAYPAUSE (BUTTON_MULTIMEDIA|0x01) |
93 | #define BUTTON_MULTIMEDIA_STOP (BUTTON_MULTIMEDIA|0x02) | 95 | #define BUTTON_MULTIMEDIA_STOP (BUTTON_MULTIMEDIA|0x02) |