Mail Archives: djgpp/1997/05/09/22:16:51
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 -