Revised GetChar question

Can calling GetChar without calling FlushEvents('keyDown') cause the
computer to freeze? That may be what was happening with my system...
it was trying to go back to the beginning of a VERY long cue of
keystrokes. Yeah?

Also: GetString needs to be updated. Right now, the key number it is
using for "return" is not the correct one (for my keyboard, anyway).
I'd say just change the line

case {13,3},

to

case {10},

... but I don't know if that would work on all systems.

Sorry to bug you with inanities earlier,

!M
Don't know. Works well on our PowerMac-G5. But calling the FlushEvents
command at the beginning of your script is a good idea: As soon as
you've called GetChar once in a session, it will record and queue all
keypresses, including everything you'll type on the Matlab prompt or
editor window - might by the reason for your long queue of keystrokes.

GetString is already properly fixed in the developer branch, but not
yet comitted to beta.

ciao,
-mario


--- In psychtoolbox@yahoogroups.com, "questionmarkusc" <lescroar@...>
wrote:
>
> Can calling GetChar without calling FlushEvents('keyDown') cause the
> computer to freeze? That may be what was happening with my system...
> it was trying to go back to the beginning of a VERY long cue of
> keystrokes. Yeah?
>
> Also: GetString needs to be updated. Right now, the key number it is
> using for "return" is not the correct one (for my keyboard, anyway).
> I'd say just change the line
>
> case {13,3},
>
> to
>
> case {10},
>
> ... but I don't know if that would work on all systems.
>
> Sorry to bug you with inanities earlier,
>
> !M
>