summaryrefslogtreecommitdiff
path: root/apps/keymaps/keymap-android.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2012-04-05 13:00:05 +0200
committerThomas Martitz <kugel@rockbox.org>2012-04-05 15:01:59 +0200
commitbb0e4cc543e4c7bed6dff3a41d092b6867632535 (patch)
treea62dca3c50fa09cfe609df088e9eee9bf2ac2853 /apps/keymaps/keymap-android.c
parentf458888a4c4fd8601ff4690388e2fc06fecb9fc2 (diff)
downloadrockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.zip
rockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.tar.gz
rockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.tar.bz2
rockbox-bb0e4cc543e4c7bed6dff3a41d092b6867632535.tar.xz
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 'apps/keymaps/keymap-android.c')
-rw-r--r--apps/keymaps/keymap-android.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/apps/keymaps/keymap-android.c b/apps/keymaps/keymap-android.c
index b7b93ac..ea1abbc 100644
--- a/apps/keymaps/keymap-android.c
+++ b/apps/keymaps/keymap-android.c
@@ -50,9 +50,6 @@ static const struct button_mapping button_context_standard[] = {
{ ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
{ ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
- /* special hack to get a redraw on activity resume, see lcd-android.c */
- { ACTION_REDRAW, BUTTON_FORCE_REDRAW, BUTTON_NONE },
-
LAST_ITEM_IN_LIST
}; /* button_context_standard */