[comp.os.msdos.programmer] Problem: Detecting mouse events inside a TSR

hleaves@ruby.vcu.edu (EAVES,HUGH) (12/14/90)

I've written a TSR screensaver program. It ties into the system clock interrupt
(1Ch) and the keyboard interrupt (09h). As with most screensavers, the system
clock increments a counter, and the keyboard interrupt resets the counter. If
the counter reaches a certain value the screen is blanked. If the screen is
blanked and a key is pressed, the screen is reactivated and the timer reset.
This works fine, except when using a mouse. If the user doesn't press any keys
while using the mouse, the screen will blank after the normal amount of time.
This forces him to press a key, which gets annoying when running a mouse based
application. I was wondering if there was a standard way to monitor mouse
events inside a TSR, without interfering with the application progam. 
Basically, I would like the screensavers counter to reset whenever the mouse
was moved or the mouse button was pressed. I've got the standard DOS/BIOS
references, but there doesn't seem to be a way for the TSR to monitor the mouse
at the same time as the application program. Any ideas?

Thanks,
Hugh

*******************************************************************************
** Hugh L. Eaves                      ** Internet: hleaves@ruby.vcu.edu      **
** Medical College of Virginia        ** Bitnet: hleaves@vcuruby             **
** Department of Human Genetics       ** Voice: (804) 371-8754               **
***************** All non-incendiary communication welcome! *******************