Exit Pitchscreen on BUTTON_HOME for Sansa Clip

ToggleMode is remapped to BUTTON_SELECT
Reset is remapped to Long BUTTON_HOME or Long BUTTON_SELECT (avoids accidental reset by pressing BUTTON_SELECT)

Change-Id: I6fc4050c66db2d7db7ec899f9c83b70754fef9df
This commit is contained in:
roman.artiukhin 2022-10-30 14:04:17 +02:00 committed by Christian Soffke
parent 0747415277
commit d520dcbfbb
2 changed files with 7 additions and 5 deletions

View file

@ -212,9 +212,11 @@ static const struct button_mapping button_context_pitchscreen[] = {
{ ACTION_PS_NUDGE_LEFTOFF, BUTTON_LEFT|BUTTON_REL, BUTTON_NONE },
{ ACTION_PS_NUDGE_RIGHT, BUTTON_RIGHT, BUTTON_NONE },
{ ACTION_PS_NUDGE_RIGHTOFF, BUTTON_RIGHT|BUTTON_REL, BUTTON_NONE },
{ ACTION_PS_TOGGLE_MODE, BUTTON_HOME|BUTTON_REL, BUTTON_HOME },
{ ACTION_PS_RESET, BUTTON_SELECT, BUTTON_NONE },
{ ACTION_PS_TOGGLE_MODE, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT },
{ ACTION_PS_RESET, BUTTON_HOME|BUTTON_REPEAT, BUTTON_HOME },
{ ACTION_PS_RESET, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT },
{ ACTION_PS_EXIT, BUTTON_POWER, BUTTON_NONE },
{ ACTION_PS_EXIT, BUTTON_HOME|BUTTON_REL, BUTTON_HOME },
{ ACTION_PS_SLOWER, BUTTON_LEFT|BUTTON_REPEAT, BUTTON_NONE },
{ ACTION_PS_FASTER, BUTTON_RIGHT|BUTTON_REPEAT, BUTTON_NONE },
LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD),

View file

@ -76,15 +76,15 @@
\newcommand{\ActionKbdPageFlip}{}
%Button actions, Pitch Screen context
\newcommand{\ActionPsToggleMode}{\ButtonHome}
\newcommand{\ActionPsToggleMode}{\ButtonSelect}
\newcommand{\ActionPsIncSmall}{\ButtonUp}
\newcommand{\ActionPsIncBig}{Long \ButtonUp}
\newcommand{\ActionPsDecSmall}{\ButtonDown}
\newcommand{\ActionPsDecBig}{Long \ButtonDown}
\newcommand{\ActionPsNudgeLeft}{\ButtonLeft}
\newcommand{\ActionPsNudgeRight}{\ButtonRight}
\newcommand{\ActionPsReset}{\ButtonSelect}
\newcommand{\ActionPsExit}{\ButtonPower}
\newcommand{\ActionPsReset}{Long \ButtonHome or Long \ButtonSelect}
\newcommand{\ActionPsExit}{\ButtonPower or \ButtonHome}
%Button actions, Recording screen context
\newcommand{\ActionRecPause}{\ButtonSelect}