Mail Archives: djgpp/1997/09/03/21:49:38
From: | gautam AT interlog DOT com (Gautam N. Lad)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Checking and retrieving keypresses in Allegro
|
Date: | Fri, 29 Aug 97 20:00:20 GMT
|
Organization: | InterLog Internet Services
|
Lines: | 29
|
Message-ID: | <5u79gn$m3k$1@news.interlog.com>
|
NNTP-Posting-Host: | ip220-88.cc.interlog.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi,
I have started creating my own GUI, because:
1) I'm too lazy to use or learn Allegro's
2) To me, Allegro's GUI is ugly (guess it's just for testing/debugging)
3) And, because I want total control over my GUI system
So, now, how can I find out if a key is being pressed, just anywhere.
Whenever a key is pressed, I want to find out what that key is.
I've looked into Allegro's GUI.C source, in the d_edit_proc section (and just
about everywhere else), but I'm confused as to how it retrieves key presses.
Does it have anything to do with MSG_CHAR? Allegro's keyboard handler is
interrupt based, so it is constantlly recieving keypresses, right? How can I
retrieve these keys?
Thanks!
Bye!
****************************************************
* Gautam N. Lad *
*--------------------------------------------------*
* *
* E-Mail : gautam AT interlog DOT com *
* Website : http://www.interlog.com/~gautam *
* *
* OS/2, DOS/Windows, Graphics Gallery, Software, *
* Links, Rayzor Editor/2, POV-Ray, TexturEyes, *
* POV-PAK and lots lots lots more!!!!!!! *
****************************************************
- Raw text -