movemouse problems

Blitz3D Forums/Blitz3D Programming/movemouse problems

Ross C(Posted 2005) [#1]
Hi, i'm sometimes using the scaled window options, in the graphics command, mode 3 i think it is. When i set mouse co-ords using movemouse, it doesn't move the mouse to the co-ords i specify. There always slightly off. Anyway around this?

Scale the window, then hold down the left mouse button and you'll see the mouse co-ords are slightly off sometimes.

Graphics 800,600,16,3
SetBuffer BackBuffer()


While Not KeyHit(1)

	Cls


	If MouseDown(1) Then
		MoveMouse 500,300
	End If

	Text 0,0," mouseX = "+MouseX()
	Text 0,10," mouseY = "+MouseY()
	
	Flip
Wend



jfk EO-11110(Posted 2005) [#2]
If I have scaled to window to about 800*600 then it will jump to 500/299 every time, instead of 500/300. I have no idea why this happens, but a quick workaround would be to position it at 500/301.


big10p(Posted 2005) [#3]
Scaleable windows aren't fully supported by Blitz3D, are they?


Ross C(Posted 2005) [#4]
Yeah, i could do that thanks jfk :o)

Scaleable windows seem to work fine on this PC. I'm not really using them, it was just for debugging purposes. Thanks for the response guys!