Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mgl:taskreferencecallbacks [2009/06/10 18:21]
mgl:taskreferencecallbacks [2015/01/28 17:35]
Line 74: Line 74:
   task.getResponse = [0 1];   task.getResponse = [0 1];
  
-You may also set a getResponse segment to 2. What this does is similar to setting myscreen.flushMode = 1. It prevents mglFlush from being called to update the screen while you are waiting for a keyboard press. This will get much more accurate keyboard timing, but will not allow the screen to update while you are waiting (i.e. you have to have a static display--no moving dots or flickering gratings or anything).+You may also set a getResponse segment to 2. What this does is similar to setting myscreen.flushMode = 1. It prevents mglFlush from being called to update the screen while you are waiting for a keyboard press. This will get much more accurate keyboard timing, but will not allow the screen to update while you are waiting (i.e. you have to have a static display--no moving dots or flickering gratings or anything). Note that this functionality is not usually used anymore since we have accurate timestamps on the keyboard events in the latest version of mgl.
  
   task.getResponse = [0 2];   task.getResponse = [0 2];