Win32: EVENT_MOUSEUP fires a stray EVENT_MOUSEMOVE

Archives Forums/BlitzMax Bug Reports/Win32: EVENT_MOUSEUP fires a stray EVENT_MOUSEMOVE

Yan(Posted 2010) [#1]
The title says it all really. Run this...
Strict

Graphics 800, 600

Repeat
	Select WaitEvent()
		Case EVENT_MOUSEMOVE
			Print "Move - " + EventX() + " : " + EventY()
			
		Case EVENT_MOUSEDOWN
			Print "Down - " + EventData()
		
		Case EVENT_MOUSEUP
			Print "Up - " +  EventData()
	End Select
	
	Flip
Until KeyHit(KEY_ESCAPE) Or AppTerminate()

End
...And you'll see that clicking any mouse button emits a stray MOUSEMOVE event.


It appears to be related to the mouse capturing in 'system.win32.c >> bbSystemEmitOSEvent()'. Commenting out the relevant capture/releasecapture calls cures the problem and everything *seemingly* works as it should but, as I don't understand why you're capturing the mouse here, I can't be certain.