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

WheelY only updates when mouse is moved #104

Open
Pharmhaus-2 opened this issue Apr 14, 2019 · 0 comments
Open

WheelY only updates when mouse is moved #104

Pharmhaus-2 opened this issue Apr 14, 2019 · 0 comments

Comments

@Pharmhaus-2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant