Skip to content

add MouseScrollUnit to MouseWheel controls#738

Merged
alice-i-cecile merged 1 commit intoLeafwing-Studios:mainfrom
JodaInteractive:174
Jan 7, 2026
Merged

add MouseScrollUnit to MouseWheel controls#738
alice-i-cecile merged 1 commit intoLeafwing-Studios:mainfrom
JodaInteractive:174

Conversation

@it-me-joda
Copy link
Collaborator

This PR adds MouseScrollUnit to MouseScroll and MouseScrollAxis types.

The new field preserves the existing behavior of MouseScrollUnit::Pixel so people who were using things like MouseScrollAxis::Y or default MouseScroll configurations should avoid breakage.

I also added a little extra test coverage around mouse controls while I was in there.

Fixes #174

@it-me-joda it-me-joda added this to the 0.21 milestone Jan 7, 2026
@alice-i-cecile alice-i-cecile merged commit 63b65e8 into Leafwing-Studios:main Jan 7, 2026
4 checks passed
@alice-i-cecile alice-i-cecile added the bug Something isn't working label Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MouseWheel handling does not support setting MouseScrollUnit

2 participants