MouseX, Y not returning values in GLFW3

Monkey Forums/Monkey Bug Reports/MouseX, Y not returning values in GLFW3

Koradin(Posted 2014) [#1]
TouchX(0) & TouchY(0) do return values. Double checked my installation by compiling against GLFW2, which returned values on MouseX and Y as expected.


ImmutableOctet(SKNG)(Posted 2014) [#2]
What operating system are you running? I'm on Windows 8.1 (x64), and it works with both targets for me.


Koradin(Posted 2014) [#3]
Apologize for not including them:

Windows 8 (x64)
Intel Core i5
8 GB Ram
Nvidia GTX 650 - 1GB
Using MinGW TDM build v4.8.1


marksibly(Posted 2014) [#4]
Can you post some sample code? The code below works fine here.

Is keyboard input also broken? ie: has the window perhaps not received focus?

Does you computer have a touchscreen?

Import mojo

Class MyApp Extends App

	Method OnRender()
		Cls
		DrawText "x="+MouseX+", y="+MouseY,0,0
	End
	
End

Function Main()
	New MyApp
End



Koradin(Posted 2014) [#5]
Tested your code - worked as expected. I went back and looked at my code substituting MouseX and Y for TouchX and Y and it worked as it should. I haven't changed anything there so I don't know why but I'm not going to complain about it either -- it works!

I do use strict mode and call for the mouse in the OnUpdate method.

Sorry for any inconvenience. Thank you for your time.