Controller: hold to show the secondary subtitle, dictionary entry navigation, standard button names (#312)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
YashaNoosandClaude Opus 5.5 authored and GitHub committed 2026-11-01 15:54:47 -08:00
1 parent af44735bb8
commit 655510cf2e
24 files changed
+609 -33

No files matched your search

+3
View File
@@ -79,6 +79,9 @@ export const CORE_DEFAULT_CONFIG: Pick<
nextAudio: { kind: 'button', buttonIndex: 5 },
playCurrentAudio: { kind: 'button', buttonIndex: 4 },
toggleMpvPause: { kind: 'button', buttonIndex: 9 },
holdSecondarySub: { kind: 'none' },
previousEntry: { kind: 'none' },
nextEntry: { kind: 'none' },
leftStickHorizontal: { kind: 'axis', axisIndex: 0, dpadFallback: 'horizontal' },
leftStickVertical: { kind: 'axis', axisIndex: 1, dpadFallback: 'vertical' },
rightStickHorizontal: { kind: 'axis', axisIndex: 3, dpadFallback: 'none' },
+18
View File
@@ -55,6 +55,24 @@ export function buildCoreConfigOptionRegistry(
defaultValue: defaultConfig.controller.bindings.toggleMpvPause,
description: 'Controller binding descriptor for toggling mpv play/pause.',
},
{
id: 'holdSecondarySub',
defaultValue: defaultConfig.controller.bindings.holdSecondarySub,
description:
'Controller binding descriptor that shows the secondary subtitle only while held. Works with or without keyboard-only mode.',
},
{
id: 'previousEntry',
defaultValue: defaultConfig.controller.bindings.previousEntry,
description:
'Controller binding descriptor that selects the previous word entry in the open Yomitan popup. Mine Card mines the selected entry.',
},
{
id: 'nextEntry',
defaultValue: defaultConfig.controller.bindings.nextEntry,
description:
'Controller binding descriptor that selects the next word entry in the open Yomitan popup. Mine Card mines the selected entry.',
},
] as const;
const axisBindings = [
+3
View File
@@ -88,6 +88,9 @@ const CONTROLLER_DISCRETE_BINDING_KEYS = [
'nextAudio',
'playCurrentAudio',
'toggleMpvPause',
'holdSecondarySub',
'previousEntry',
'nextEntry',
] as const;
const CONTROLLER_AXIS_BINDING_KEYS = [