Docs @ Psychtoolbox Wiki : KbStrokeWait

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

KbStrokeWait

PsychtoolboxPsychBasic

[secs, keyCode, deltaSecs] = KbStrokeWait([deviceNumber], [more optional args for KbWait]);

KbStrokeWait waits for a single keystroke of your subject, ie. it waits
until all keys on the keyboard are released, after that it waits for a
single keystroke - a single press of a key, followed by releasing the key
again. After the subject has finished its "keystroke" and released the key,
KbStrokeWait returns the keyboard state and timestamp of the key press.

This is a convenience wrapper, doing the same thing as
KbWait(deviceNumber, 3, ...); so read "help KbWait" for details about
operation and returned values.

You'll typically use this function to ask your subject for input of a
single character, or for confirmation of something (e.g., "Press any key
when you're ready for the next block of trials").

See also: KbPressWait, KbReleaseWait, KbWait, KbCheck, KbStrokeWait.




Path   Retrieve current version of KbStrokeWait.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychBasic/KbStrokeWait.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0850 seconds