From: | Jonas Hulten |
Date: | 09 Dec 99 at 22:36:38 |
Subject: | Re: Reading keypresses |
From: Jonas Hulten <bjonte@hem2.passagen.se>
Den 08-Dec-99, skrev Donald W Millican:
> From: "Donald W Millican" <DonaldWM@stonelawdrive.freeserve.co.uk>
> switch(code)
> {
> case `1`:
> // Deal with a 1 being entered
> break;
> etc.
> I thought I could read Space as:
> case ` `:
> printf("Space entered");
> and Return / Enter as:
> case `\n`:
> printf("Return / Enter entered");
> I have tried these ideas but the messages are never displayed no matter
> which way I go about displaying them.
> Any ideas?
Are you really using ` ` instead of ' '? Try with 0x31 and 0x20 instead of
`1` and ` `.
/Jonas