Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!ubc-cs!ugly.cs.ubc.ca!yleung From: yleung@ugly.cs.ubc.ca (yue hang leung) Newsgroups: comp.sys.atari.st Subject: Re: evnt_keybd Message-ID: <4612@ubc-cs.UUCP> Date: 29 Jul 89 17:10:33 GMT Sender: news@cs.ubc.ca Reply-To: yleung@ugly.cs.ubc.ca (yue hang leung) Organization: UBC Department of Computer Science, Vancouver, B.C., Canada Lines: 7 In-reply-to: jwd@iuvax.cs.indiana.edu (Jon Dunn) In article 17102 <23916@iuvax.cs.indiana.edu> Jon Dunn wrote: >This may be dumb question, but how do I convert the scan code >returned by the AES evnt_keybd() function to ASCII code? Try masking out the higher byte of the integer that is returned. Or you can try casting the integer to a char. The resulting byte should be the ASCII code.