home *** CD-ROM | disk | FTP | other *** search
- MOUSER ver 1.0 This is a set of mouse interface routines.
- These routines only read the mouse for input and return that information to
- the calling procedure. These routines DO NOT actually manipulate the screen
- or screen cursor. These are basic routines so that the user can manipulate
- the mouse information however he or she like. The MOUSER unit provides
- these variable types, variables, and procedures:
-
- MOUSEMOVE : record with X and Y motion counters.
-
- mousemove = record
- xmouse : integer;
- ymouse : integer;
- end; {record mousemove}
-
- MOUSEPRESENT : boolean variable set by mouseready function. Tells whether
- mouse is present.
-
- LEFTBUTTON : boolean variable. True if left button has been pressed.
- Important for calling program to reset to false after
- using.
-
- RIGHTBUTTON : boolean variable. True if right button has been pressed.
- Same usage note as LEFTBUTTON.
-
- CENTERBUTTON : boolean variable. True if center button has been pressed.
- Same usage note as LEFTBUTTON. Not sure of response on
- a two button mouse. Can be deleted for two button mouse
- if needed.
-
- LASTMOUSE : Last position of mouse. Set by QUESTIONMOUSE function.
-
- MOUSEREADY : Function testing whether mouse is present and ready.
-
- MOUSEBUTTONPRESSED : Function testing if a button has been pressed on
- the mouse. It will set the appropriate button
- variables if the a button has been pressed.
-
- QUESTIONMOUSE : Function testing if mouse has input. Works like
- KEYPRESSED function in TP.
-
- MOUSEMOVED : Procedure to read mouse motion counters. It will return
- any movement since the last time it was called.
-
- These procedures have been tested on LOGITECH mice (three button mouse) and
- MICROSOFT Two-button mice, both using the MOUSE driver. The following files
- are in this set:
-
- MOUSER.PAS : unit containing the mouse routines.
-
- MOUSER.DOC : This file.
-
- MOUSDEMO.PAS : Short demo program to demonstrate the mouse routines.
- The program echos back the motion counters and the status
- of the mouse button variables. RIGHTBUTTON or CENTERBUTTON
- terminates program.