mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 04:55:56 +00:00
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:
1 parent
5278e137ff
commit
939eeed175
1 file changed
+4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user