diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2011-12-03 23:13:17 +0000 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2011-12-03 23:13:17 +0000 |
commit | c31f7d0121f3d4b53edabdeeabf3774f7a8940b4 (patch) | |
tree | f32dd75b012ea36cdaf3c8846eec4a9583eb078f /firmware/target/arm/philips/hdd6330/button-hdd6330.c | |
parent | 6b5dff4c7be02d159b7c267372f63155cc31dbb8 (diff) | |
download | rockbox-c31f7d0121f3d4b53edabdeeabf3774f7a8940b4.tar.gz rockbox-c31f7d0121f3d4b53edabdeeabf3774f7a8940b4.zip |
HDD6330: introduce a new button (BUTTON_TAP), based on the hardware support for gestures. From now on some things are accessible by tapping on the vertical scroll strip. Reorganize, fix and remap some of the keymaps, add missing keymap for the recording.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31132 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/philips/hdd6330/button-hdd6330.c')
-rw-r--r-- | firmware/target/arm/philips/hdd6330/button-hdd6330.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/philips/hdd6330/button-hdd6330.c b/firmware/target/arm/philips/hdd6330/button-hdd6330.c index fc171c72ba..4e40de57ab 100644 --- a/firmware/target/arm/philips/hdd6330/button-hdd6330.c +++ b/firmware/target/arm/philips/hdd6330/button-hdd6330.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "synaptics-mep.h" | 26 | #include "synaptics-mep.h" |
27 | 27 | ||
28 | /*#define LOGF_ENABLE*/ | 28 | /*#define LOGF_ENABLE*/ |
29 | #include "logf.h" | 29 | /*#include "logf.h"*/ |
30 | 30 | ||
31 | static int int_btn = BUTTON_NONE; | 31 | static int int_btn = BUTTON_NONE; |
32 | #ifndef BOOTLOADER | 32 | #ifndef BOOTLOADER |
@@ -78,6 +78,10 @@ void button_int(void) | |||
78 | if (data[1] & 0x8) | 78 | if (data[1] & 0x8) |
79 | int_btn |= BUTTON_VIEW; | 79 | int_btn |= BUTTON_VIEW; |
80 | } | 80 | } |
81 | else if ((data[1] & MEP_GESTURE) && (data[3] >> 6) == 0) /* index = 0 */ | ||
82 | { | ||
83 | int_btn |= BUTTON_TAP; | ||
84 | } | ||
81 | else if ((data[0] == MEP_ABSOLUTE_HEADER)) | 85 | else if ((data[0] == MEP_ABSOLUTE_HEADER)) |
82 | { | 86 | { |
83 | if (data[1] & MEP_FINGER) | 87 | if (data[1] & MEP_FINGER) |