🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #427

Unknown mouse.h

#427
From: Marco Gualdi
Date: Thu, 30 Jul 1992 06:32
83 lines
3899 bytes
Hi everybody.

I'd found a cople of files mouses.lib and mouses.h that containsa lot of
interesting function for mouse control. The file mouse.h has been modified, 
and copyright messages has been removed. I need to know where it came from. 

--- Mouse.h --- cut here --- Mouse.h --- cut here --- Mouse.h --- cut here -----
/*                               */
/*             FILE MOUSE.H      */
/*                               */

/* Per GetStatus  */
#define  LEFT_BUTTON       0
#define  RIGHT_BUTTON      1
#define  MIDDLE_BUTTON     2

/* Per SetTcursor */
#define  SOFT_CURSOR       0
#define  HARD_CURSOR       1

/* Per SetSubMask */
#define  CURSCHANGE        0
#define  LEFTPRESS         1
#define  LEFTRELEASE       2
#define  RIGHTPRESS        3
#define  RIGHTRELEASE      4
#define  MIDDLEPRESS       5
#define  MIDDLERELEASE     6

typedef struct {
         unsigned int ax;
         unsigned int bx;
         unsigned int cx;
         unsigned int dx;
      } MouseData;


extern int AskStorage (MouseData * near Dataout);
extern int GetMotion (MouseData * near Dataout);
extern int GetPress (unsigned int button, MouseData * near Dataout);
extern int GetRelease (unsigned int button, MouseData * near Dataout);
extern int GetStatus (MouseData * near Dataout);
extern int HideCursor (void);
extern int LightpenOff (void);
extern int LightpenOn (void);
extern int MousePresent (void);
extern int MouseReset (MouseData *Dataout);
extern int ProtectArea (int startx, int starty, int lastx, int lasty);
extern int RestoreStatus (unsigned char far * MouseStatus, unsigned int nbytes);
extern int SaveStatus (unsigned char far * MouseStatus, unsigned int nbytes);
extern int SetGcursor (unsigned int far * ScreenMask, int hspot, int vspot);
extern int SetLargeCursor (unsigned int far * ScreenMask, unsigned char dimx, un
signed char dimy, char hspot, char vspot);
extern int SetPosition (unsigned int pos_x, unsigned int pos_y);
extern int SetRatio (unsigned int hratio, unsigned int vratio);
extern int SetSpeed (unsigned int threshold);
extern int SetSubMask (void (far * sub) (void), unsigned int mask);
extern int SetTcursor (unsigned int ctype, unsigned int cmaskstart, unsigned int
 cmaskstop);
extern int SetXlimits (unsigned int min_x, unsigned int max_x);
extern int SetYlimits (unsigned int min_y, unsigned int max_y);
extern int ShowCursor (void);
--- Mouse.h --- cut here --- Mouse.h --- cut here --- Mouse.h --- cut here -----

I need any information about these functions (parameters, return value, what are
used for, etc...) and about the file ( where does it came from ).

Please answer by E-Mail.

Thank you and sorry for my ugly English.

--

_______________________________ | According  to the  latest  official  figures,
__/~\_______/~\____/~~~~~~~\___ | 43% of all statistics are totally worthless.
__/~~\_____/~~\___/~\_____/~\__ | _____________________________________________
__/~~~\___/~~~\___/~\_____/~\__ |       Marco Gualdi  ---  MaGu on irc
__/~\/~\_/~\/~\___/~\__________ |        (monta_l@dist.dist.unige.it)
__/~\_/~~~\_/~\___/~\__/~~~~\__ | _____________________________________________
__/~\__/~\__/~\___/~\_____/~\__ | To be sure of hitting the target, shoot first
__/~\_______/~\___/~\_____/~\__ | and, whatever you hit, call it the target.
__/~\_______/~\____/~~~~~~~\___ | _____________________________________________
Technical Details
Message-ID: <1992Jul30.063227.14421@i2unix.dist.unige.it>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!i2unix!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer,alt.msdos.programmer,comp.os.msdos.programmer,comp.os.msdos.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!i2unix!news
From: monta_l@dist.dist.unige.it (Marco Gualdi)
Subject: Unknown mouse.h
Message-ID: <1992Jul30.063227.14421@i2unix.dist.unige.it>
Sender: news@i2unix.dist.unige.it (USENET Superuser)
Organization: DIST - Universita` di Genova
Date: Thu, 30 Jul 1992 06:32:27 GMT
Lines: 84