Enabled hotkey for Sansa Clip players

Change-Id: Ic0fb331415bf0cc0fce5916befce64f4a41c46ee
This commit is contained in:
Igor B. Poretsky 2017-02-04 12:37:56 +03:00 committed by Solomon Peachy
parent 45915101d5
commit 30fb53d47f
6 changed files with 9 additions and 8 deletions

View file

@ -84,10 +84,9 @@ static const struct button_mapping button_context_wps[] = {
{ ACTION_WPS_ID3SCREEN, BUTTON_SELECT|BUTTON_DOWN, BUTTON_SELECT },
#ifdef HAVE_HOTKEY /* down|repeat doesn't work in the file browser */
{ ACTION_WPS_HOTKEY, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
#else
{ ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_WPS_HOTKEY, BUTTON_DOWN, BUTTON_NONE },
#endif
{ ACTION_WPS_VIEW_PLAYLIST, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE },
#ifndef HAS_BUTTON_HOLD /* Clip+ */
{ ACTION_STD_KEYLOCK, BUTTON_HOME|BUTTON_SELECT, BUTTON_NONE },
@ -137,7 +136,7 @@ static const struct button_mapping button_context_tree[] = {
{ ACTION_TREE_WPS, BUTTON_HOME|BUTTON_SELECT, BUTTON_HOME },
{ ACTION_TREE_STOP, BUTTON_POWER|BUTTON_REL, BUTTON_POWER },
#ifdef HAVE_HOTKEY
// { ACTION_TREE_HOTKEY, BUTTON_NONE, BUTTON_NONE },
{ ACTION_TREE_HOTKEY, BUTTON_HOME|BUTTON_DOWN, BUTTON_HOME },
#endif
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_LIST),

View file

@ -207,4 +207,4 @@
#define DEFAULT_REC_RIGHT_GAIN 23
/* Define this if a programmable hotkey is mapped */
//#define HAVE_HOTKEY
#define HAVE_HOTKEY

View file

@ -229,4 +229,4 @@
#define DEFAULT_REC_RIGHT_GAIN 23
/* Define this if a programmable hotkey is mapped */
//#define HAVE_HOTKEY
#define HAVE_HOTKEY

View file

@ -223,4 +223,4 @@
#define DEFAULT_REC_RIGHT_GAIN 23
/* Define this if a programmable hotkey is mapped */
//#define HAVE_HOTKEY
#define HAVE_HOTKEY

View file

@ -228,4 +228,4 @@
#define DEFAULT_REC_RIGHT_GAIN 23
/* Define this if a programmable hotkey is mapped */
//#define HAVE_HOTKEY
#define HAVE_HOTKEY

View file

@ -42,6 +42,7 @@
\newcommand{\ActionWpsPitchScreen}{Long \ButtonUp}
\newcommand{\ActionWpsPlaylist}{Long \ButtonDown}
\newcommand{\ActionWpsIdThreeScreen}{\ButtonSelect{} + \ButtonDown}
\newcommand{\ActionWpsHotkey}{\ButtonDown}
\newcommand{\ActionWpsAbSetBNextDir}{\ButtonPower{} + \ButtonRight}
\newcommand{\ActionWpsAbSetAPrevDir}{\ButtonPower{} + \ButtonLeft}
@ -52,6 +53,7 @@
\newcommand{\ActionTreeStop}{\ButtonPower}
\newcommand{\ActionTreeEnter}{\ButtonSelect{} or \ButtonRight}
\newcommand{\ActionTreeParentDirectory}{\ButtonLeft}
\newcommand{\ActionTreeHotkey}{\ButtonHome{} + \ButtonDown}
%Button actions, YesNo context
\newcommand{\ActionYesNoAccept}{\ButtonSelect}