MouseSpeed

BlitzMax Forums/BlitzMax Beginners Area/MouseSpeed

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.

aha,

my code was:
Graphics 1024,768,0,85

MoveMouse GraphicsWidth()/2,GraphicsHeight()/2

While Not KeyHit(KEY_ESCAPE)
	Cls
	
	'mousex and y speeds
	mx=MouseX();mxspd=oldmx-mx;oldmx=mx
	my=MouseY();myspd=oldmy-my;oldmy=my
	MoveMouse GraphicsWidth()/2,GraphicsHeight()/2
		
	x:+mxspd
	y:+myspd
	
	DrawOval x,y,32,32
	
	FlushMem;Flip
	
Wend
End