Event_MouseMove always being called

BlitzMax Forums/BlitzMax Beginners Area/Event_MouseMove always being called

blackwater(Posted 2012) [#1]
Hi all. I'm a little confused about Event_MouseMove. I was under the assumption this event only gets generated when the mouse is moving?

I just discovered that it's getting called constantly even when my mouse isn't moving. Can someone please shed some light on this, thanks in advance.


GfK(Posted 2012) [#2]
Works for me in 1.48.

Need sample code.


Derron(Posted 2012) [#3]
If it does not work on your side try skip further processing

global lastX:int = -1
global lastY:int = -1

if event = event_MouseMove
	if lastX<>event.X or lastY<>event.Y
		lastX = event.x
		lastY = event.y

		'do something as there was a real mousemove-event
		'...
	endif
endif



bye
Ron