![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				Wait for specific cedrus key
			 
			
			
			My cedrus handler triggers an event viz.sendEvent(CEDRUS_BUTTON_DOWN, response['key']) every time a cedrus button is pressed. 
		
		
		
		
		
		
		
		
	
	How can I pause my Experiment until a specific cedrus key is pressed (e.g. button 6 is down)?  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			But in this case every cedrus button resumes my experiment. 
		
		
		
		
		
		
		
		
	
	How can I wait for a specific button? (e.g. button 6)  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
		
		 
			
			I'm using pyxid. But I'll have a closer look at the implementation of waitButtonDown.
		 
		
		
		
		
		
		
		
		
	
	 | 
![]()  | 
	
	
| Tags | 
| cedrus | 
| Thread Tools | |
| Display Modes | Rate This Thread | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| wait for vizproximity and waitKeyDown in task | krimble | Vizard | 2 | 08-14-2013 04:14 AM | 
| Cedrus Response Pad? | Trevor | Vizard | 1 | 08-16-2012 05:26 PM | 
| Wait for function to return? | Josh | Vizard | 4 | 04-15-2010 03:11 PM | 
| Wait for an audio file to end playing until new action possible? | Josh | Vizard | 1 | 03-07-2010 11:13 PM | 
| Sit, stay, wait? | EnvisMJ | Vizard | 1 | 05-20-2009 05:36 PM |