Skip to content

Commit 1909cee

Browse files
committed
add demo checkAbort
1 parent 75c80f9 commit 1909cee

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

demos/CPP_checkAbortDemo.m

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
cd ..
2+
3+
cfg.keyboard = [];
4+
cfg.escapeKey = 'ESCAPE';
5+
KbName('UnifyKeyNames');
6+
7+
% stay in the loop until the escape key is pressed
8+
while GetSecs < Inf
9+
10+
checkAbort(cfg)
11+
12+
end

0 commit comments

Comments
 (0)