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

[Windows Standalone] mouse.scroll.y value is inverted #113

Closed
JiaUnity opened this issue May 18, 2018 · 7 comments
Closed

[Windows Standalone] mouse.scroll.y value is inverted #113

JiaUnity opened this issue May 18, 2018 · 7 comments
Assignees
Labels
bug Issues where existsing functionality misbehaves native Requires fix in Unity native.
Milestone

Comments

@JiaUnity
Copy link
Contributor

In Standalone Players, the value for mouse.scroll.y is negative when scrolling up, and positive when scrolling down.
In UWP build, the value is the opposite.
mousescroll
The blue arrow is showing how the mouse is scrolling. The red text is the y value from new Input System.

@Rene-Damm
Copy link
Contributor

I think that what UWP does is actually better and probably what we want the other platforms to do as well. What's the orientation of values we get in the old input system?

Having Y up on the wheel (i.e. scrolling up increases Y, scrolling down decreases Y) fits with the orientation of the screen axis in play mode.

@Rene-Damm Rene-Damm added the bug Issues where existsing functionality misbehaves label May 18, 2018
@JiaUnity
Copy link
Contributor Author

Yeah. In the Old Manager, Up = positive value, Down = negative value

@JiaUnity
Copy link
Contributor Author

The scroll direction on Mac is the same as UWP:
macscroll
Is it the Windows Standalone reversed?

@Rene-Damm
Copy link
Contributor

Yup, I think Windows (and other platforms if need be; Android?) should be changed to do the same as UWP and Mac.

@Rene-Damm Rene-Damm self-assigned this May 24, 2018
@Rene-Damm
Copy link
Contributor

BTW love the very visual bug reports :)

@Rene-Damm Rene-Damm changed the title [UWP] The mouse.scroll.y value is reversed from other platform. [Windows Standalone] The mouse.scroll.y value is inverted May 24, 2018
@Rene-Damm Rene-Damm changed the title [Windows Standalone] The mouse.scroll.y value is inverted [Windows Standalone] mouse.scroll.y value is inverted May 24, 2018
@Rene-Damm
Copy link
Contributor

Fixed in 3abd1e283b32 in native. On its way into 2018.2 beta.

@Rene-Damm Rene-Damm added the native Requires fix in Unity native. label Jun 8, 2018
@Rene-Damm Rene-Damm added this to the 2018.2 milestone Jun 8, 2018
@JiaUnity
Copy link
Contributor Author

This has been fixed somewhere along the fixing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues where existsing functionality misbehaves native Requires fix in Unity native.
Projects
None yet
Development

No branches or pull requests

2 participants