www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/16/20:33:02

Message-ID: <3AB2BA5A.4030100@operamail.com>
From: Sahab Yazdani <sahaby AT operamail DOT com>
Organization: PheonixSoft Interactive
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001204
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [OT] fast, SAFE keyboard handler
References: <3ab04ed5 AT leia DOT ktsnet DOT com>
Lines: 41
Date: Fri, 16 Mar 2001 20:14:02 -0500
NNTP-Posting-Host: 149.99.118.73
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: newscontent-01.sprint.ca 984792012 149.99.118.73 (Fri, 16 Mar 2001 20:20:12 EST)
NNTP-Posting-Date: Fri, 16 Mar 2001 20:20:12 EST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

something a bit less complicated than the Allegro code might be better, 
I've written an entile gaming library (it is buggy though), with a 
built-in keyboard handler that handles more than 1 button at a time. 
you can download the source code from:

http://pheonixsoft.virtualave.net/grfx2.html

code is in C++ and meant to be used under DJGPP (it also converts 
scancodes into normal characters if you want it to.)

Cody wrote:

> Does anyone have an extremely fast keyboard handler for 32-bit dos that is
> safe?  I also need one that's translated into 16-bit code, because more than
> likely it's going to have to be in assembler, which I have a... "fear"... of
> coding in (+ I understand the very basics but can't translate it at all).  I
> currently have a 16-bit keyboard handler (that was written for turbo pascal
> 6.0 in asm), but it changes the keyboard handler and restores it at the end
> of the program.  That's all fine and dandy until someone presses
> control+break in the program and it isn't able to restore the old keyboard
> handler, causing my friggin' comp to freeze.  Well, anyways, all I'm begging
> for is some keyboard functions that can detect more than 1 key at once that
> is fast and most importantly SAFE.  Any suggestions?
> 
> 
> P.S.  I don't want to use allegro's keyboard handler because everytime I try
> anything with allegro, it will not compile.  I've tried everything:
> reinstalling djgpp, allegro, rhide, typing alleg in the libraries in rhide,
> etc. etc.  to no avail.  If I could use allegro, it would be fine, but I
> can't.



-- 
***********************************************************
* Sahab Yazdani * "Wizard's Third Rule: Passion rules     *
* Thornhill S.S * Reason" - Kolo's Journal                *
***********************************************************
* http://pheonixsoft.virtualave.net/                      *
***********************************************************

- Raw text -


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