Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer using DeviceEvent over WindowEvent for mouse input handling #117

Closed
wants to merge 1 commit into from

Conversation

m3ta4a
Copy link

@m3ta4a m3ta4a commented Oct 31, 2020

Great tutorial, got me excited about graphics programming again. I noticed moving the camera with mouse input was pretty buggy so I looked into it. According to the docs here, you don't want to use a WindowEvent for 3d camera control. A DeviceEvent is more reliable. Here's some more discussion for additional context.

Copy link
Owner

@sotrh sotrh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README.md file for the camera tutorial will need to be updated as well.

@khuttun
Copy link
Contributor

khuttun commented Nov 23, 2020

Does DeviceEvent work in wasm32?

@sotrh
Copy link
Owner

sotrh commented Nov 24, 2020

I'm not sure. That would probably be a good question for the folks at https://github.com/rust-windowing/winit

@sotrh
Copy link
Owner

sotrh commented Nov 25, 2020

Closing this in favor of #127

@sotrh sotrh closed this Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants