How to detect all Mouse Keys?

BlitzMax Forums/BlitzMax Programming/How to detect all Mouse Keys?

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.

Graphics 640,480,0,0

Global m1:Int,m2:Int,m3:Int,mx:Int,my:Int,mz:Int

While Not KeyDown(KEY_ESCAPE)

	Cls
	
	m1 = MouseDown(MOUSE_LEFT)
	m2 = MouseDown(MOUSE_RIGHT)
	m3 = MouseDown(MOUSE_MIDDLE)
	
	mx = MouseX()
	my = MouseY()
	mz = MouseZ()
	
	DrawText("Left: " + m1 + " Right: " + m2 + " Middle: " + m3 + " X: " + mx + " Y: " + my + " Z: " + mz, 10, 10)
	 
	Flip

Wend
End