Int 33H Function 14H (20) Swap user-defined mouse event handlers

Sets the address and event mask for an application program's mouse event handler and returns the address and event mask for the previous handler. The newly installed handler is called by the mouse driver whenever the specified mouse events occur.

Call with:

AX = 0014H

CX = event mask

Bit(s) Significance (if set)

0 mouse movement

1 left button pressed

2 left button released

3 right button pressed

4 right button released

5 center button pressed

6 center button released

7—15 reserved (0)

ES:DX = segment:offset of event handler

Returns:

CX = previous event mask

ES:DX = segment:offset of previous handler

Notes:

The Notes for Int 33H Function 0CH describe the information passed to the user-defined event handler. See also Int 33H Function 18H.

Calls to the event handler are disabled with Int 33H Function 00H or by setting an event mask of zero.