delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/27/21:50:20

From: "Mark Usher" <marku AT magnet DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Key press in ASCII
Date: Sun, 27 Jun 1999 19:20:55 +0200
Organization: Telenor magnet GmbH
Lines: 14
Message-ID: <7l5mhn$h9q$1@orudios.magnet.at>
NNTP-Posting-Host: n206p027.dipool.highway.telekom.at
X-Trace: orudios.magnet.at 930504055 17722 195.3.121.187 (27 Jun 1999 17:20:55 GMT)
X-Complaints-To: abuse AT magnet DOT at
NNTP-Posting-Date: 27 Jun 1999 17:20:55 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Is there a function available that will give me the ascii value of a key
press back ? If not, is there an easy way to convert the key press returned
from getkey() to it's ASCII value.

Basically I am trying to add the key pressed to a string without having to
press return.
ie
    key = getkey()
    strcat(kbdbuffer, ASCII(key)

Mark
marku AT magnet DOT at


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019