File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 110110 eventType = ' released' ;
111111 end
112112
113- fprintf(' %s was %s at time %.3f seconds\n ' , ...
113+ fprintf(' \n %s was %s at time %.3f seconds\n ' , ...
114114 responseEvents(iEvent ).key_name, ...
115115 eventType , ...
116116 responseEvents(iEvent ).onset - startSecs );
Original file line number Diff line number Diff line change 1616% - flush:
1717% - stop:
1818%
19- % - getOnlyPress: if set to 1 the function will only return the key presses and
20- % will not return when the keys were released (default=1 )
19+ % - getOnlyPress: if set to true the function will only return the key presses and
20+ % will not return when the keys were released (default=true )
2121% See the section on OUTPUT below for more info
2222%
2323%
4444
4545
4646if nargin < 4
47- getOnlyPress = 1 ;
47+ getOnlyPress = true ;
4848end
4949
5050responseEvents = struct ;
51- responseEvents.onset = [];
52- responseEvents.trial_type = [];
53- responseEvents.duration = [];
54- responseEvents.key_name = [];
55- responseEvents.pressed = [];
5651
5752responseBox = cfg .responseBox ;
5853
5954switch action
6055
6156 case ' init'
6257
63- % Prevent spilling of keystrokes into console. If you use ListenChar(2)
64- % this will prevent you from using KbQueue.
58+ % Prevent spilling of keystrokes into console.
59+ % If you use ListenChar(2), this will prevent you from using KbQueue.
6560 ListenChar(-1 );
6661
6762 % Clean and realease any queue that might be opened
@@ -138,6 +133,7 @@ function talkToMe(action, expParameters)
138133
139134end
140135
136+
141137function keysOfInterest = setKeysOfInterest(expParameters )
142138% list all the response keys we want KbQueue to listen to
143139% by default we listen to all keys
You can’t perform that action at this time.
0 commit comments