summaryrefslogtreecommitdiff
path: root/firmware/target/arm/philips
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/philips')
-rw-r--r--firmware/target/arm/philips/hdd6330/button-hdd6330.c6
-rw-r--r--firmware/target/arm/philips/hdd6330/button-target.h4
2 files changed, 8 insertions, 2 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
31static int int_btn = BUTTON_NONE; 31static 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)
diff --git a/firmware/target/arm/philips/hdd6330/button-target.h b/firmware/target/arm/philips/hdd6330/button-target.h
index 492a5014e5..8d4ed5ef5f 100644
--- a/firmware/target/arm/philips/hdd6330/button-target.h
+++ b/firmware/target/arm/philips/hdd6330/button-target.h
@@ -29,6 +29,7 @@
29#define MEP_BUTTON_ID 0x9 29#define MEP_BUTTON_ID 0x9
30#define MEP_ABSOLUTE_HEADER 0x0b 30#define MEP_ABSOLUTE_HEADER 0x0b
31#define MEP_FINGER 0x01 31#define MEP_FINGER 0x01
32#define MEP_GESTURE 0x02
32 33
33#define HAS_BUTTON_HOLD 34#define HAS_BUTTON_HOLD
34 35
@@ -53,7 +54,8 @@ void button_int(void);
53#define BUTTON_NEXT 0x00000200 54#define BUTTON_NEXT 0x00000200
54#define BUTTON_PREV 0x00000400 55#define BUTTON_PREV 0x00000400
55#define BUTTON_PLAY 0x00000800 56#define BUTTON_PLAY 0x00000800
56#define BUTTON_MAIN 0x00000fff 57#define BUTTON_TAP 0x00001000
58#define BUTTON_MAIN 0x00001fff
57 59
58/* No Remote control */ 60/* No Remote control */
59#define BUTTON_REMOTE 0 61#define BUTTON_REMOTE 0