mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Enabled hotkey for Sansa Clip players
Change-Id: Ic0fb331415bf0cc0fce5916befce64f4a41c46ee
This commit is contained in:
parent
45915101d5
commit
30fb53d47f
6 changed files with 9 additions and 8 deletions
|
@ -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),
|
||||
|
|
|
@ -207,4 +207,4 @@
|
|||
#define DEFAULT_REC_RIGHT_GAIN 23
|
||||
|
||||
/* Define this if a programmable hotkey is mapped */
|
||||
//#define HAVE_HOTKEY
|
||||
#define HAVE_HOTKEY
|
||||
|
|
|
@ -229,4 +229,4 @@
|
|||
#define DEFAULT_REC_RIGHT_GAIN 23
|
||||
|
||||
/* Define this if a programmable hotkey is mapped */
|
||||
//#define HAVE_HOTKEY
|
||||
#define HAVE_HOTKEY
|
||||
|
|
|
@ -223,4 +223,4 @@
|
|||
#define DEFAULT_REC_RIGHT_GAIN 23
|
||||
|
||||
/* Define this if a programmable hotkey is mapped */
|
||||
//#define HAVE_HOTKEY
|
||||
#define HAVE_HOTKEY
|
||||
|
|
|
@ -228,4 +228,4 @@
|
|||
#define DEFAULT_REC_RIGHT_GAIN 23
|
||||
|
||||
/* Define this if a programmable hotkey is mapped */
|
||||
//#define HAVE_HOTKEY
|
||||
#define HAVE_HOTKEY
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue