movemouse problems

Blitz3D Forums/Blitz3D Programming/movemouse problems

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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


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.

Scaleable windows aren't fully supported by Blitz3D, are they?

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!