www.delorie.com/archives/browse.cgi | search |
From: | NOdbrotherhood AT geocities DOT comSPAM (Michael D. Ryan) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | ALLEGRO: Keyboard reading help... |
Date: | Wed, 25 Jun 1997 00:11:48 GMT |
Organization: | Brotherhood Software |
Lines: | 27 |
Message-ID: | <33b061c3.10229116@usenet.nau.edu> |
Reply-To: | NOdbrotherhood AT geocities DOT comSPAM |
NNTP-Posting-Host: | ts13-11.ppp.nau.edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I want to be able to interpret an alt code from the keyboard using allegro. I have tried doing it the way it says in the allegro.txt and it doesn't work. EX: int ch, int key; key = KEY_F; ch = readkey(); if (ch == (key << 8)) do_whatever(); else didnt_work(); It doesn't seem to recognize the keys. I have tried a whole bunch of different combinations and no luck. Any help? -- Michael D. Ryan [Brotherhood Software] dbrotherhood AT geocities DOT com Web Page: http://www.geocities.com/SiliconValley/Pines/5301/ Shareware Trakker: http://www.alberts.com/AuthorPages/00014388/ST1.HTM Items For Sale: http://www.geocities.com/SiliconValley/Pines/5301/sale.html NOTE: REMOVE "NO" and "SPAM" from my address to email me. --
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |