![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				multiple mouse clicks
			 
			
			
			Dear users, 
		
		
		
		
		
		
		
		
	
	Sorry if this is a simple question but it there anything I can add to Code: 
	def BallFlight(): #Wait for left mouse button to be pressed yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT) thank you. Best, J  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			Sure, just yield the mouse down condition multiple time. For example: 
		
		
		
		
		
		
		
		
	
	Code: 
	def BallFlight(): #Wait for left mouse button to be pressed twice yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT) yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT) Code: 
	NUM_CLICKS = 2 def BallFlight(): #Wait for left mouse button to be pressed twice for x in range(NUM_CLICKS): yield viztask.waitMouseDown(viz.MOUSEBUTTON_LEFT)  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			ah, it was that obvious, thank you! 
		
		
		
		
		
		
		
		
	
	Best, J  | 
![]()  | 
	
	
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Picking in multiple windows | FalconNL | Vizard | 1 | 07-02-2007 10:45 AM | 
| Multiple Stages in one Program | Amit | Vizard | 7 | 11-11-2005 11:20 AM | 
| Mouse problem | steve | Vizard | 7 | 07-14-2005 04:01 PM | 
| Draw Line between Points selected by mouse | Johannes | Vizard | 7 | 01-07-2005 03:50 PM | 
| Halting mouse view-transforms | FlyingWren | Vizard | 1 | 10-01-2003 06:29 PM |