InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

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

Open JiaUnity opened this issue 8 years ago • 7 comments

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.

JiaUnity avatar May 18 '18 00:05 JiaUnity

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 avatar May 18 '18 01:05 Rene-Damm

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

JiaUnity avatar May 18 '18 01:05 JiaUnity

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

JiaUnity avatar May 23 '18 22:05 JiaUnity

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

Rene-Damm avatar May 24 '18 14:05 Rene-Damm

BTW love the very visual bug reports :)

Rene-Damm avatar May 24 '18 14:05 Rene-Damm

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

Rene-Damm avatar Jun 07 '18 01:06 Rene-Damm

This has been fixed somewhere along the fixing.

JiaUnity avatar Feb 12 '19 23:02 JiaUnity