Additions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m">beta</a> | view WebSVN <a href=
"http://svn.berlios.de/wsvn/osxptb/trunk/Psychtoolbox/PsychBasic/CharAvail.m?op=log">changelog</a> of trunk branch</span>
Deletions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m">beta</a> | view in <a href=
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m?view=markup">WebSVN with changelog</a></span>
Additions:
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m?view=markup">WebSVN with changelog</a></span>
Deletions:
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m?view=markup">WebSVN with changelog</a></span>
Additions:
GetChar and CharAvail are character-oriented (and slow), whereas KbCheck
and KbWait are keypress-oriented (and fast). See KbCheck.
Deletions:
Mac:
Command-Period always causes an immediate exit.
GetChar and CharAvail are character-oriented (and slow), whereas KbCheck
and KbWait are keypress-oriented (and fast). See KbCheck.
WARNING: When BACKGROUNDING is enabled, Matlab removes all
characters from the event queue before executing each Matlab
statement, so CharAvail and EventAvail('keyDown') always report 0.
So turn off BACKGROUNDING:
[[Screen]]('[[Preference]]','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
Additions:
""
<div class="code_header" style="text-align:right;">
<span style="float:left;">Path </span> <span class="counter">Retrieve current version of CharAvail.m from berliOS: <a href=
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/CharAvail.m?view=markup">WebSVN with changelog</a></span>
</div>
<div class="code">
<code>Psychtoolbox/PsychBasic/CharAvail.m</code>
</div>
""
Deletions:
%%(php;Path)Psychtoolbox/PsychBasic/CharAvail.m%%
Additions:
Mac:
Deletions:
=== Mac: ===
Deletions:
=== MUUUUUUUH ===
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
=== MUUUUUUUH ===
Deletions:
==[[Psychtoolbox]] › PsychBasic==
Additions:
%%(php;Path)Psychtoolbox/PsychBasic/CharAvail.m%%
Additions:
=== Mac: ===
Deletions:
Mac:
Additions:
Mac:
Deletions:
===
Mac: ===
Additions:
===
Mac: ===
Deletions:
=== Mac: ===
Additions:
=== Mac: ===
Deletions:
== Mac: ==
Additions:
== Mac: ==
Deletions:
Mac:
Additions:
[[Screen]]('[[Preference]]','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, KbDemo, [[Screen]] [[Preference]] Backgrounding.
Deletions:
[[Screen]]('Preference','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, KbDemo, [[Screen]] Preference Backgrounding.
Additions:
[avail, numChars] = CharAvail
CharAvail returns the availability of characters in the keyboard event
queue and sometimes the queue's current size. "avail" will be 1 if characters are
available, 0 otherwise. "numChars" may hold the current number of
characters in the event queue, but in some system configurations it is
just empty, so do not rely on numChars providing meaningful results,
unless you've tested it on your specific setup.
Note that this routine does not actually remove characters from the event
queue. Call GetChar to remove characters from the queue.
CharAvail works on all platforms with Matlab and Java enabled. It works
also on M$-Windows under matlab -nojvm mode. It does not work on OS-X or
Linux in Matlab -nojvm mode and it also doesn't work under GNU/Octave.
Mac:
Command-Period always causes an immediate exit.
GetChar and CharAvail are character-oriented (and slow), whereas KbCheck
and KbWait are keypress-oriented (and fast). See KbCheck.
WARNING: When BACKGROUNDING is enabled, Matlab removes all
characters from the event queue before executing each Matlab
statement, so CharAvail and EventAvail('keyDown') always report 0.
So turn off BACKGROUNDING:
[[Screen]]('Preference','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, K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[]]t[[]]s[[]],[[]] [[]]K[[]]b[[]]C[[]]h[[]]e[[]]c[[]]k[[]],[[]] [[]]K[[]]b[[]]W[[]]a[[]]i[[]]t[[]],[[]] [[]]K[[]]b[[]]D[[]]e[[]]m[[]]o[[]],[[]] [[Screen]] [[]]P[[]]r[[]]e[[]]f[[]]e[[]]r[[]]e[[]]n[[]]c[[]]e[[]] [[]]B[[]]a[[]]c[[]]k[[]]g[[]]r[[]]o[[]]u[[]]n[[]]d[[]]i[[]]n[[]]g[[]].[[]]
[[]]
Deletions:
[avail, numChars] = CharAvail
CharAvail returns the availability of characters in the keyboard event
queue and sometimes the queue's current size. "avail" will be 1 if characters are
available, 0 otherwise. "numChars" may hold the current number of
characters in the event queue, but in some system configurations it is
just empty, so do not rely on numChars providing meaningful results,
unless you've tested it on your specific setup.
Note that this routine does not actually remove characters from the event
queue. Call GetChar to remove characters from the queue.
CharAvail works on all platforms with Matlab and Java enabled. It works
also on M$-Windows under matlab -nojvm mode. It does not work on OS-X or
Linux in Matlab -nojvm mode and it also doesn't work under GNU/Octave.
Mac:
Command-Period always causes an immediate exit.
GetChar and CharAvail are character-oriented (and slow), whereas KbCheck
and KbWait are keypress-oriented (and fast). See KbCheck.
WARNING: When BACKGROUNDING is enabled, Matlab removes all
characters from the event queue before executing each Matlab
statement, so CharAvail and EventAvail('keyDown') always report 0.
So turn off BACKGROUNDING:
[[Screen]]('Preference','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, KbDemo, [[Screen]] Preference Backgrounding.
Additions:
==[[Psychtoolbox]] › PsychBasic==
[[Screen]]('Preference','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, KbDemo, [[Screen]] Preference Backgrounding.
Deletions:
==PtbReference › PsychBasic==
Screen('Preference','Backgrounding',0); % Until Matlab 5.2.1, this call required a disk access, which is slow.
See also: GetChar, ListenChar, FlushEvents, KbCheck, KbWait, KbDemo, Screen Preference Backgrounding.
PsychBasic
Additions:
===[[CharAvail]]===
==PtbReference › PsychBasic==
Deletions:
===PsychBasic===