Light Pen Won't Work with Mouse Installed (10619)
The information in this article applies to:
- Microsoft Mouse driver for MS-DOS 9.0
- Microsoft Mouse driver for MS-DOS 6.x
- Microsoft Mouse driver for MS-DOS 7.x
- Microsoft Mouse driver for MS-DOS 8.x
This article was previously published under Q10619 SUMMARY
If you have both a mouse and a light pen installed, you may get
conflicts between the two. This is because the Microsoft Mouse can be
used to emulate a light pen.
When installed, the mouse driver is initialized with "light pen
emulation mode" turned on. Pressing both mouse buttons simultaneously
indicates pen touching the screen; releasing the buttons indicates pen
off the screen.
If a light pen is installed with the mouse driver in the above
condition, the light pen cannot function correctly. Light pen
information is collected using an INT 10h DOS call, code 4. With the
mouse's pen emulation mode turned on, the pen does not appear to work
properly because the mouse driver is pointing that interrupt's vector
to its own routine instead of to the regular light pen handler.
For the pen to work properly with the mouse driver installed, mouse
function 14 must be called to turn pen emulation mode off. Once
disabled, emulation mode is reenabled by calling mouse function 13.
See the Microsoft Mouse Programmer's Reference for documentation of
the mouse function calls.
Modification Type: | Major | Last Reviewed: | 9/24/2003 |
---|
Keywords: | KB10619 |
---|
|