mouse double click

Blitz3D Forums/Blitz3D Programming/mouse double click

Mathieu A(Posted 2003) [#1]
is someone know how to make a double click with mouse?


GfK(Posted 2003) [#2]
Global LastClick% = 0
Global DoubleClickDelay% = 200

While Not KeyDown(1)
	If MouseDown(1)
		If MilliSecs() < LastClick + DoubleClickDelay
			Print "Double-click detected"
		EndIf
		While MouseDown(1)
			;call your 'Update game' function etc here if you need to...
		Wend
		LastClick = MilliSecs()
	EndIf
Wend



Mathieu A(Posted 2003) [#3]
thanks GfK! maybe it will be good to have this function in a future release of blitz


Hotcakes(Posted 2003) [#4]
EDIT : Wrong forum