Docs @ Psychtoolbox Wiki : DisableKeysForKbCheck

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

Revision [12099]

Last edited on 2010-12-06 10:27:05 by DocBot
Additions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m">beta</a> | view WebSVN <a href=
"http://svn.berlios.de/wsvn/osxptb/trunk/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m?op=log">changelog</a> of trunk branch</span>
Deletions:
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m">beta</a> | view in <a href=
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m?view=markup">WebSVN with changelog</a></span>


Revision [10123]

Edited on 2010-09-09 15:26:01 by DocBot
Additions:
"http://svn.berlios.de/wsvn/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m?view=markup">WebSVN with changelog</a></span>
Deletions:
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m?view=markup">WebSVN with changelog</a></span>


Revision [7563]

Edited on 2008-09-25 18:08:00 by DocBot
Additions:
""
<div class="code_header" style="text-align:right;">
<span style="float:left;">Path  </span> <span class="counter">Retrieve current version of DisableKeysForKbCheck.m from berliOS: <a href=
"http://svn.berlios.de/svnroot/repos/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m">beta</a> | view in <a href=
"http://svn.berlios.de/viewcvs/osxptb/beta/Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m?view=markup">WebSVN with changelog</a></span>
</div>
<div class="code">
<code>Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m</code>
</div>
""
Deletions:
%%(php;Path)Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m%%


Revision [5157]

Edited on 2008-06-15 19:54:31 by DocBot
Additions:
==[[Psychtoolbox]] › [[PsychBasic]]==
Deletions:
==[[Psychtoolbox]] › PsychBasic==


Revision [3235]

Edited on 2008-03-21 11:14:15 by DocBot
Additions:
olddisabledkeys = DisableKeysForKbCheck([disablekeys])
Specify a vector of keycodes for keys which should be
ignored by KbCheck and KbWait. This is useful to
disable specific keys, e.g., if they are stuck. The function
returns the old set of disabled keys.
Example: To disable the keys with keycodes 4, 6 and 7, do
DisableKeysForKbCheck([4, 6, 7]);
Caution: This setting is reset to "empty" during a "clear all" command!
=== Background info: ===
Some users of Laptops experienced the problem of "stuck keys": Some keys
are always reported as "down", so KbWait returns immediately and KbCheck
always reports keyIsDown ""=="" 1. This is often due to special function keys.
These keys or system functionality are assigned vendor specific
key codes, e.g., the status of the Laptop lid (opened/closed) could be
reported by some special keycode. Whenever the Laptop lid is open, this key
will be reported as pressed. You can work around this problem by passing
a list of keycodes to be ignored by KbCheck and KbWait.
See also: FlushEvents, KbName, KbDemo, KbWait, KbCheck, GetChar, CharAvail.
Deletions:
olddisabledkeys = DisableKeysForKbCheck([disablekeys])
Specify a vector of keycodes for keys which should be
ignored by KbCheck and KbWait. This is useful to
disable specific keys, e.g., if they are stuck. The function
returns the old set of disabled keys.
Example: To disable the keys with keycodes 4, 6 and 7, do
DisableKeysForKbCheck([4, 6, 7]);
Caution: This setting is reset to "empty" during a "clear all" command!
=== Background info: ===
Some users of Laptops experienced the problem of "stuck keys": Some keys
are always reported as "down", so KbWait returns immediately and KbCheck
always reports keyIsDown ""=="" 1. This is often due to special function keys.
These keys or system functionality are assigned vendor specific
key codes, e.g., the status of the Laptop lid (opened/closed) could be
reported by some special keycode. Whenever the Laptop lid is open, this key
will be reported as pressed. You can work around this problem by passing
a list of keycodes to be ignored by KbCheck and KbWait.
See also: FlushEvents, KbName, KbDemo, KbWait, KbCheck, GetChar, CharAvail.


Revision [2812]

Edited on 2008-03-21 04:55:30 by DocBot
Additions:
=== Background info: ===
Deletions:
Background info:


Revision [2755]

Edited on 2008-03-21 03:22:55 by DocBot
Additions:
==[[Psychtoolbox]] › PsychBasic==
olddisabledkeys = DisableKeysForKbCheck([disablekeys])
Specify a vector of keycodes for keys which should be
ignored by KbCheck and KbWait. This is useful to
disable specific keys, e.g., if they are stuck. The function
returns the old set of disabled keys.
Example: To disable the keys with keycodes 4, 6 and 7, do
DisableKeysForKbCheck([4, 6, 7]);
Caution: This setting is reset to "empty" during a "clear all" command!
Background info:
Some users of Laptops experienced the problem of "stuck keys": Some keys
are always reported as "down", so KbWait returns immediately and KbCheck
always reports keyIsDown ""=="" 1. This is often due to special function keys.
These keys or system functionality are assigned vendor specific
key codes, e.g., the status of the Laptop lid (opened/closed) could be
reported by some special keycode. Whenever the Laptop lid is open, this key
will be reported as pressed. You can work around this problem by passing
a list of keycodes to be ignored by KbCheck and KbWait.
----
See also: FlushEvents, KbName, KbDemo, KbWait, KbCheck, GetChar, CharAvail.
%%(php;Path)Psychtoolbox/PsychBasic/DisableKeysForKbCheck.m%%
Deletions:
==PtbReference › PsychBasic==
olddisabledkeys = DisableKeysForKbCheck([disablekeys])

Specify a vector of keycodes for keys which should be
ignored by KbCheck and KbWait. This is useful to
disable specific keys, e.g., if they are stuck. The function
returns the old set of disabled keys.

Example: To disable the keys with keycodes 4, 6 and 7, do
DisableKeysForKbCheck([4, 6, 7]);

Caution: This setting is reset to "empty" during a "clear all" command!

Background info:

Some users of Laptops experienced the problem of "stuck keys": Some keys
are always reported as "down", so KbWait returns immediately and KbCheck
always reports keyIsDown == 1. This is often due to special function keys.
These keys or system functionality are assigned vendor specific
key codes, e.g., the status of the Laptop lid (opened/closed) could be
reported by some special keycode. Whenever the Laptop lid is open, this key
will be reported as pressed. You can work around this problem by passing
a list of keycodes to be ignored by KbCheck and KbWait.
_________________________________________________________________________
See also: FlushEvents, KbName, KbDemo, KbWait, KbCheck, GetChar, CharAvail.
PsychBasic


Revision [2407]

Edited on 2008-03-15 12:08:18 by DocBot
Additions:
===[[DisableKeysForKbCheck]]===
==PtbReference › PsychBasic==
Deletions:
===PsychBasic===


Revision [289]

The oldest known version of this page was created on 2008-03-15 10:26:22 by DocBot
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0188 seconds