View Single Post
  #2  
Old 08-18-2014, 02:58 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The viztask.waitMouseDown command has been updated and no longer expects the viz.Data object to be passed as an argument. Use the following instead:

Code:
def example_trial():
	startTime = viz.tick()
	response = yield viztask.waitMouseDown( None )
	print 'response at: ', viz.tick() 
	reactionTime = response.time - startTime
	print reactionTime
Reply With Quote