-
Notifications
You must be signed in to change notification settings - Fork 3
/
check_esc.m
31 lines (28 loc) · 1002 Bytes
/
check_esc.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function check_esc
global chk ao
ks=cgkeymap;
if ks(1);
if chk
putsample(ao,[-5 -5])
end
pause(.5)
ks = 0;
cgtext('Esc = Beenden',0,100)
cgtext('Leertaste = Fortsetzen',0,0)
cgflip(0,0,0)
while sum(ks) == 0;
ks=cgkeymap;
end
if ks(1)
xt=1;
if chk
putsample(ao,[5 5])
putsample(ao,[0 0])
end
cgshut
else
if chk
putsample(ao,[0 0])
end
end
end