www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/03/15/08:13:01

Date: Thu, 15 Mar 2001 18:28:02 +0530 (IST)
From: Mridul Muralidharan <ec97027 AT matrix DOT reccal DOT ernet DOT in>
To: cody1 AT ktsnet DOT com
cc: Djgpp mailing list <djgpp AT delorie DOT com>
Subject: Re: [OT] fast, SAFE keyboard handler
In-Reply-To: <3ab04ed5@leia.ktsnet.com>
Message-ID: <Pine.LNX.4.04.10103151806330.8685-100000@matrix.reccal.ernet.in>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 14 Mar 2001, Cody wrote:
> Does anyone have an extremely fast keyboard handler for 32-bit dos that is
> safe?  
since u have allegro source files , just check out the allegro 
src/djgpp/keyboard.c for their keyboard isr.

> I also need one that's translated into 16-bit code
sorry, could not follow what u meant

[snip]
> 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.  
i don't get it. 
if u have u'r own keyboard isr installed, then it gets called even
when ctrl-break is pressed ,which does not result in program termination.
Thats why in allegro u have the three finger flag (ctrl-alt-end) as an
exit combo for emergency purposes (ctrl-alt-del in dos !! ).

if u still cannot get the keyboard isr working , then mail me.
i can send u a copy of my keyboard handler, which i wrote for an old vga 
game library.

if u do not want to write u'r own handler but just want a bunch of
functions that take over the keyboard directly , then u could use the
libkb library by Markus F.X.J Oberhumer available at
ftp://x2ftp.oulu.fi/pub/msdos/programming/libs
or the keyboard functions by Martynas Kunigelis 1996 - he has an asm and a
header file , ( got it with my installation though i don't know from
where they can be got now) somebody else who knows from where they can be
got , please do respond.

all the best :)

Mridul Muralidharan
S8 Electronics and Communication
Regional Engineering College
Calicut
India

------------------------------------------------------------------------------

If the code and the comments disagree, then both are probably wrong.
                -- Norm Schryer

All generalizations are false, including this one.
                -- Mark Twain

/earth is 98% full ... please delete anyone you can.

        - fortune


- Raw text -


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