If I move the mousewheel while keeping the mouse still, I only see -1 or 1, even when released. Only when I move the mouse does it update to zero:
Namespace myapp
#Import "<std>"
#Import "<mojo>"
Using std..
Using mojo..
Class MyWindow Extends Window
Method New( title:String="Simple mojo app",width:Int=640,height:Int=480,flags:WindowFlags=Null )
Super.New( title,width,height,flags )
End
Method OnRender( canvas:Canvas ) Override
App.RequestRender()
canvas.DrawText("MouseY: " + Mouse.WheelY, 0, 0)
End
End
Function Main()
New AppInstance
New MyWindow
App.Run()
End
Original Author: DruggedBunny
If I move the mousewheel while keeping the mouse still, I only see -1 or 1, even when released. Only when I move the mouse does it update to zero: