-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
[Wayland] Fix tilt handling #89112
[Wayland] Fix tilt handling #89112
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops 😅
Just a quick question regarding Vector2::clamp
, see the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is another of those magical moments where code that shouldn't run worked anyways.
The Vector2::clamp
thing is a really nice trick and I really hope that #89144 gets through, it would be real nifty :D
Thanks!
328235b
to
eb92f7b
Compare
Fixed the type, it's only used in two places and it always seems to assume |
@AThousandShips WTF, I have absolutely no idea on how it is a Vector2i and how it clearly managed to report fractional results, now I'm seriously confused :/ Oh well, thanks a lot for fixing the type, that's the correct solution indeed. Are computers even real at this point lmao |
7d0aa38
to
9273106
Compare
Thanks! |
Thank you! |
For the record, tested this with my tablet and everything works perfectly 🎉 |
Haven't seen any reports on this but assuming this is a typo, replaced with
Vector2::clamp
for safety (discovered while working on #89111, and does if this is a bug show the value of that IMO)