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 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-19 20:52:25 +03:00
1 parent 5278e137ff
commit 939eeed175
1 file changed
+4
+4
View File
@@ -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;