how to read a keypress AND a mouseclick?

BlitzPlus Forums/BlitzPlus Programming/how to read a keypress AND a mouseclick?

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

apparently in this code, I can't rightclick the canvas while holding down the left ctrl key. Do I have to use $101 here too? (since $101 and $203 have their own EventData()) Do I miss something? :) any suggestions?

app=CreateWindow("bla",100,100,256,256)

canvas=CreateCanvas(32,32,64,64,app)

; left ctrl= 29

Repeat

	WaitEvent()
	
	If EventSource()=app
		If EventID()=$803 Exit
	EndIf
	
	If EventID()=$101 ; esc
		If EventData()=1 Exit
	EndIf
	
	If EventSource()=canvas
		If EventID()=$201 ; leftmousedown
			If EventData()=1 Exit
		EndIf
	EndIf

	If EventSource()=canvas
		If EventID()=$201 And KeyDown(29); rightmousedown + left ctrl (?)   <-  uh??
			If EventData()=3 Exit
		EndIf
	EndIf
	
Forever
End