-
Hi, I am trying to make some camera rotation based on mouse movement. But the mouse motion event reader does not seem to do what I expect. main.rs:
cargo.toml:
output:
What did I do wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This seems to be a bug. Your snippet works fine on my machine: MouseMotion { delta: Vec2(0.0, -1.0) }
MouseMotion { delta: Vec2(-1.0, -2.0) }
MouseMotion { delta: Vec2(0.0, -1.0) }
MouseMotion { delta: Vec2(0.0, -1.0) }
... You could open an issue with your specific platform/OS/.. |
Beta Was this translation helpful? Give feedback.
-
I have the same problem with bevy-0.16 in wsl2:
mouse position delta returns absolute position, while cursor moved delta returns position change |
Beta Was this translation helpful? Give feedback.
Thank you for the reply. It pointed me to do some tests and I found out that the problem was that I was using the remote desktop. I will open the issue.