Previous: 4.48. MMSystem - Multimedia interface unit To the Table of Contents Next: 4.49.1. Mouse Unit Procedures and Functions
4.48. MMSystem - Multimedia interface unit Table of Contents 4.49.1. Mouse Unit Procedures and Functions

- 4.49. -
Table of Contents
4. Standard Units
4.49. Mouse - Mouse Handling


4.49. Mouse - Mouse Handling

Targets: MS-DOS, Win32 console


The Mouse unit is a programming interface for controlling a mouse pointing device in MS-DOS and Win32 console applications. Included is the ability to define and install your own interrupt mouse driver. This driver is called whenever a button on the mouse is pressed or released or when the mouse is moved. It is also possible to poll for mouse movement.

The benefits of having an interrupt mouse driver is that mouse events can take place at any time; one doesn't have to wait for them. Polling for mouse events must occur within some type of loop where the status of the mouse is constantly checked. There are many benefits over polling for mouse events.

The Mouse unit gives a Pascal program access to the main mouse-support functions: See also:
Mouse Unit Procedures and Functions


Previous: 4.48. MMSystem - Multimedia interface unit To the Table of Contents Next: 4.49.1. Mouse Unit Procedures and Functions
4.48. MMSystem - Multimedia interface unit Table of Contents 4.49.1. Mouse Unit Procedures and Functions

- 4.49. -