feat(viz): gate numeric source keys too
CI build oscope-of / build-check (push) Has been cancelled

0-9 preset bundles join wxcvbn behind VIZ_SOURCE_KEYS (default off) —
the whole source row is now perf-safe.
This commit is contained in:
L'électron rare
2026-07-02 18:33:39 +02:00
parent 8d93163766
commit 1d59d68777
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ HAND_HOLD_FRAMES 2 int gesture slot hold: frames to carry
ARKIT_BONE_MAX 0.5 float max bone length (norm) for ARKit skeleton
ARKIT_FULL_SKELETON "1" bool draw full 91-joint ARKit body (!=0 = True)
VIZ_HUD "0" bool show debug HUD overlay
VIZ_SOURCE_KEYS "0" bool wxcvbn source-bundle shortcuts (off: perf safety)
VIZ_SOURCE_KEYS "0" bool wxcvbn + 0-9 source-bundle shortcuts (off: perf safety)
VIZ_AUDIO_KEYS "0" bool qsdfghjkl audio-scene shortcuts (off: perf safety; m stays)
IPHONE_OSC_PORT 57128 int UDP port for iPhone ARBodyTracker /body3d/kp
CONCERT_MIRROR "1" bool mirror video horizontally (!=0 = True)
+4 -5
View File
@@ -648,12 +648,11 @@ class AppDelegate(NSObject):
self._state.active_scene = scene
LOG.info("[audio] scene -> %s", scene)
return None
# wxcvbn -> preset bundle: gated OFF by default (VIZ_SOURCE_KEYS=1
# re-enables) — a stray keypress mid-performance switches the audio
# scene. The 0-9 numeric bundles stay active.
# wxcvbn + 0-9 -> preset bundles: ALL gated OFF by default
# (VIZ_SOURCE_KEYS=1 re-enables) — stray keypresses mid-performance
# switch the audio scene (user-disabled live 2026-07-02).
_src_maps = ((*KEYMAP_SOURCE, *KEYMAP_SOURCE_NUM)
if getattr(self, "_source_keys", False)
else KEYMAP_SOURCE_NUM)
if getattr(self, "_source_keys", False) else ())
for kk, source, scene, viz in _src_maps:
if key == kk or k == kk:
# Audio : envoie a sclang