aboutsummaryrefslogtreecommitdiff
path: root/patches/0004-yp3-hold-Up-in-Now-Playing-raises-the-volume.patch
blob: 037c4943181ed94081a25ae1110f5f9c64f78317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
From 269e5050242003eff7e5c4d88402ff96e819a468 Mon Sep 17 00:00:00 2001
From: YP3 Audiobook <noreply@example.invalid>
Date: Thu, 26 Nov 2026 13:52:50 -0500
Subject: [PATCH 4/5] yp3: hold Up in Now Playing raises the volume

Tapping Up/Down steps the volume, holding either keeps stepping it. Hold
Up used to stop playback (and bookmark).

---
 apps/keymaps/keymap-yp3.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/apps/keymaps/keymap-yp3.c b/apps/keymaps/keymap-yp3.c
index 444bd47c..d69ffd01 100644
--- a/apps/keymaps/keymap-yp3.c
+++ b/apps/keymaps/keymap-yp3.c
@@ -2,8 +2,9 @@
 /* YP3 keys: Up ("M"), Down, Left, Right, centre (Select). On every screen:
  * Left back / Right in, Up/Down move (volume on playing screens), Select the
  * main action, hold Select the screen's menu, hold Up a second action where
- * Up does not scroll, Up+Left home (main menu, or cancel on prompts), hold
- * Left back where Left already acts. */
+ * Up does not scroll (except Now Playing, where it keeps raising the
+ * volume), Up+Left home (main menu, or cancel on prompts), hold Left back
+ * where Left already acts. */
 #include "config.h"
 #include "action.h"
 #include "button.h"
@@ -24,10 +25,10 @@ static const struct button_mapping lists[] = {
     { ACTION_STD_MENU, BUTTON_UP|BUTTON_LEFT, BUTTON_NONE },
     LAST_ITEM_IN_LIST__NEXTLIST(CONTEXT_STD)
 };
-/* Now Playing: Up acts on release so that holding it can stop. Left/Right
- * tapped hop (Skip Length), held seek; Down+Left / Down+Right (the lower
- * corners) go to the previous / next chapter, so Down turns the volume
- * down on release, or the combo would lower it too. */
+/* Now Playing: Up/Down tapped step the volume, held keep stepping it. Both
+ * act on release when tapped, or the Up+Left (menu) and Down+Left/Right
+ * (previous / next chapter) combos would change the volume too. Left/Right
+ * tapped hop (Skip Length), held seek. */
 static const struct button_mapping wps[] = {
     { ACTION_WPS_PLAY, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT },
     { ACTION_WPS_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT, BUTTON_SELECT },
@@ -39,7 +40,7 @@ static const struct button_mapping wps[] = {
     { ACTION_WPS_STOPSEEK, BUTTON_RIGHT|BUTTON_REL,
                            BUTTON_RIGHT|BUTTON_REPEAT },
     { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REL, BUTTON_UP },
-    { ACTION_WPS_STOP, BUTTON_UP|BUTTON_REPEAT, BUTTON_UP },
+    { ACTION_WPS_VOLUP, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE },
 #ifdef HAVE_AUDIOBOOK_CHAPTERS
     { ACTION_WPS_VOLDOWN, BUTTON_DOWN|BUTTON_REL, BUTTON_DOWN },
     { ACTION_WPS_CHAPTERPREV, BUTTON_DOWN|BUTTON_LEFT, BUTTON_NONE },
-- 
2.56.1