Closed CarbonFlora closed 1 year ago
Hi there. mouse_motion
comes directly from the event reader, so you are right in that this is likely an issue upstream. However, it's also possibly an issue with Windows Remote Desktop - e.g. maybe the input jitter/spikes are an artefact of the network and how RDP mirrors the mouse motion. That actually sounds like the more likely culprit.
A few things to try to narrow this down:
winit
by itself and printing out its mouse motion eventsIf you can't replicate in 1 and can replicate in 2 and 3, then that strongly suggests it's RDP that is sending spiky mouse movement rather than a bug in the tech stack. It could theoretically be a bug in how winit interprets events from the OS, but that seems unlikely to me.
multiple_viewports.rs
without Windows Remote Desktop Connection, and it operates flawlessly. I will try 2 & 3 next week to help diagnose the root cause of the problem. Thanks for your help. Closing this as it's not related to the plugin
Context (Environment)
I am running the multiple_viewports.rs example in dev mode. I am interacting with the GUI through Windows Remote Desktop Connection. A
println!("mouse delta: {}", mouse_delta);
was added on line 420 in lib.rs.Behavior
I am presuming the mouse delta shouldn't spike to the tens of thousands. With these current delta readings, the camera orbits and pans in sharp and unexpected directions and intensities.
Possible Fix
This is most likely a problem with bevy_input as opposed to bevy_panorbit_camera. I haven't taken a deep looked into bevy_input to source the problem. Never posted an issue before, lmk if there's a better place to post this issue.
Log