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
This commit is contained in:
Szymon Dziok 2011-12-03 23:13:17 +00:00
parent 6b5dff4c7b
commit c31f7d0121
6 changed files with 69 additions and 37 deletions

View file

@ -30,16 +30,14 @@
# define DEBUG_CANCEL BUTTON_MENU
#elif (CONFIG_KEYPAD == SANSA_E200_PAD) || \
(CONFIG_KEYPAD == SANSA_C200_PAD)
(CONFIG_KEYPAD == SANSA_C200_PAD) || \
(CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
# define DEBUG_CANCEL BUTTON_LEFT
#elif (CONFIG_KEYPAD == PHILIPS_SA9200_PAD) || \
(CONFIG_KEYPAD == PHILIPS_HDD1630_PAD)
# define DEBUG_CANCEL BUTTON_POWER
#elif (CONFIG_KEYPAD == PHILIPS_HDD6330_PAD)
# define DEBUG_CANCEL BUTTON_PREV
#elif (CONFIG_KEYPAD == SAMSUNG_YH_PAD)
# define DEBUG_CANCEL BUTTON_PLAY

View file

@ -26,7 +26,7 @@
#include "synaptics-mep.h"
/*#define LOGF_ENABLE*/
#include "logf.h"
/*#include "logf.h"*/
static int int_btn = BUTTON_NONE;
#ifndef BOOTLOADER
@ -78,6 +78,10 @@ void button_int(void)
if (data[1] & 0x8)
int_btn |= BUTTON_VIEW;
}
else if ((data[1] & MEP_GESTURE) && (data[3] >> 6) == 0) /* index = 0 */
{
int_btn |= BUTTON_TAP;
}
else if ((data[0] == MEP_ABSOLUTE_HEADER))
{
if (data[1] & MEP_FINGER)

View file

@ -29,6 +29,7 @@
#define MEP_BUTTON_ID 0x9
#define MEP_ABSOLUTE_HEADER 0x0b
#define MEP_FINGER 0x01
#define MEP_GESTURE 0x02
#define HAS_BUTTON_HOLD
@ -53,7 +54,8 @@ void button_int(void);
#define BUTTON_NEXT 0x00000200
#define BUTTON_PREV 0x00000400
#define BUTTON_PLAY 0x00000800
#define BUTTON_MAIN 0x00000fff
#define BUTTON_TAP 0x00001000
#define BUTTON_MAIN 0x00001fff
/* No Remote control */
#define BUTTON_REMOTE 0