Function 13 - Light Pen Mode On
PSS ID Number: Q19854
Article last modified on 05-14-1993
PSS database name: H_Mouse

1.x 2.x 3.x 4.x 5.x 6.x 7.x 8.x 9.00

MS-DOS


-------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Mouse Driver for MS-DOS, versions 1.x, 2.x, 3.x, 4.x,
   5.x, 6.x, 7.x, 8.x, and 9.0
------------------------------------------------------------------- 

Summary:

The following are details on enabling the mouse light pen emulation:

FUNCTION 13: - LIGHT PEN EMULATION MODE ON
   Inputs: AX = 13
   Outputs: None

When in the light pen mode, the BASIC PEN function returns the  cursor
position at the last pen down. This is equivalent to both buttons
pressed. The pen is considered off screen when both buttons are UP.
The pen information can be accessed using INT 10h, Function 4 (ah =
4). 

Note that Function 0 enables the Light Pen Emulation mode. 

Additional reference words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Copyright Microsoft Corporation 1993.