blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

WheelY only updates when mouse is moved #104

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

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:

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