www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/09/22:16:51

From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Software ints from hardware handlers.
Date: Fri, 09 May 1997 08:30:33 -0400
Organization: Cornell University http://www.cornell.edu
Lines: 25
Sender: asu1 AT cornell DOT edu (Verified)
Message-ID: <337318E9.4B46@cornell.edu>
References: <5kue8q$jnk AT lion DOT cs DOT latrobe DOT edu DOT au>
Reply-To: asu1 AT cornell DOT edu
NNTP-Posting-Host: cu-dialup-0006.cit.cornell.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gregary J Boyles wrote:
> 
> Can it be done with hanging the machine? I have a key board handler 
> and I want to time stamp my input events. I was trying to use dos 
> service get time (int 0x21) inside my key board handler but it doesn't 
> work. Are there any other ways, hacks, cheats?

i do not know if you need the time exactly as reported by that function
or if you just need to be able to order the events. if it is the latter,
why not just use a counter that is incremented each time the event
occurs? if all you need to know is if one keypress occurred before the
other, why not use a circular buffer to store the keypressess and let
the other functions retrieve them on a FIFO basis? 

-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 

Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************

- Raw text -


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