From 939eeed175624235f8e4f0644f4fb3a437ac3573 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Thu, 19 Nov 2026 20:52:25 +0300 Subject: [PATCH] The mouse shake's right-stick side is cleared when the camera input leaves the direct path, so a camera without a direct hook never keeps the stick at full tilt (#1300) Co-Authored-By: Claude Opus 5.5 --- runtime/mouse_direct.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/mouse_direct.c b/runtime/mouse_direct.c index d1cea4cb..7efcfb8d 100644 --- a/runtime/mouse_direct.c +++ b/runtime/mouse_direct.c @@ -455,6 +455,10 @@ static void camera_input(Cpu *c) { rt_log("mouse: direct camera input after the stick dead zone, clamp and exponent"); } } + } else { + // Off the direct path (another mouse_mode, or a camera without a direct hook) no step follows a shake: a side + // left set would hold input.c's right stick at full tilt + __atomic_store_n(&shake_side, 0, __ATOMIC_RELAXED); } plat_mutex_lock(&sample_lock); MouseSample last = sample;