From: | David McMinn |
Date: | 27 Sep 2000 at 18:34:26 |
Subject: | Re: EventCodes and Keys |
Hi Gareth
> This is probably really obvious, but when I'm scanning for a keypress event
> (IDCMP $400) in a loop, and it detects one, how do I get the ASCII code of that
> character?
If you add #IDCMP_VANILLAKEY to your window, detect for those events, you can
then use EventCode to get the ASCII code. Note, this only works for the vanilla
coloured keys (i.e. letters, numbers etc), you'll still need to use RAWKEY for
things like shift, etc.
Note2: Escape key will return ASCII 27 from a vanillakey event. Return might
return ascii 10 or 13, or maybe it still gives rawkeys. I can't remember.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie