home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / ibm / pc / misc / 11000 < prev    next >
Encoding:
Text File  |  1992-07-29  |  3.9 KB  |  96 lines

  1. Xref: sparky comp.sys.ibm.pc.misc:11000 comp.sys.ibm.pc.programmer:305 alt.msdos.programmer:2102 comp.os.msdos.programmer:8167 comp.os.msdos.misc:4562
  2. Newsgroups: comp.sys.ibm.pc.misc,comp.sys.ibm.pc.programmer,alt.msdos.programmer,comp.os.msdos.programmer,comp.os.msdos.misc
  3. Path: sparky!uunet!mcsun!i2unix!news
  4. From: monta_l@dist.dist.unige.it (Marco Gualdi)
  5. Subject: Unknown mouse.h
  6. Message-ID: <1992Jul30.063227.14421@i2unix.dist.unige.it>
  7. Sender: news@i2unix.dist.unige.it (USENET Superuser)
  8. Organization: DIST - Universita` di Genova
  9. Date: Thu, 30 Jul 1992 06:32:27 GMT
  10. Lines: 84
  11.  
  12.  
  13. Hi everybody.
  14.  
  15. I'd found a cople of files mouses.lib and mouses.h that containsa lot of
  16. interesting function for mouse control. The file mouse.h has been modified, 
  17. and copyright messages has been removed. I need to know where it came from. 
  18.  
  19. --- Mouse.h --- cut here --- Mouse.h --- cut here --- Mouse.h --- cut here -----
  20. /*                               */
  21. /*             FILE MOUSE.H      */
  22. /*                               */
  23.  
  24. /* Per GetStatus  */
  25. #define  LEFT_BUTTON       0
  26. #define  RIGHT_BUTTON      1
  27. #define  MIDDLE_BUTTON     2
  28.  
  29. /* Per SetTcursor */
  30. #define  SOFT_CURSOR       0
  31. #define  HARD_CURSOR       1
  32.  
  33. /* Per SetSubMask */
  34. #define  CURSCHANGE        0
  35. #define  LEFTPRESS         1
  36. #define  LEFTRELEASE       2
  37. #define  RIGHTPRESS        3
  38. #define  RIGHTRELEASE      4
  39. #define  MIDDLEPRESS       5
  40. #define  MIDDLERELEASE     6
  41.  
  42. typedef struct {
  43.          unsigned int ax;
  44.          unsigned int bx;
  45.          unsigned int cx;
  46.          unsigned int dx;
  47.       } MouseData;
  48.  
  49.  
  50. extern int AskStorage (MouseData * near Dataout);
  51. extern int GetMotion (MouseData * near Dataout);
  52. extern int GetPress (unsigned int button, MouseData * near Dataout);
  53. extern int GetRelease (unsigned int button, MouseData * near Dataout);
  54. extern int GetStatus (MouseData * near Dataout);
  55. extern int HideCursor (void);
  56. extern int LightpenOff (void);
  57. extern int LightpenOn (void);
  58. extern int MousePresent (void);
  59. extern int MouseReset (MouseData *Dataout);
  60. extern int ProtectArea (int startx, int starty, int lastx, int lasty);
  61. extern int RestoreStatus (unsigned char far * MouseStatus, unsigned int nbytes);
  62. extern int SaveStatus (unsigned char far * MouseStatus, unsigned int nbytes);
  63. extern int SetGcursor (unsigned int far * ScreenMask, int hspot, int vspot);
  64. extern int SetLargeCursor (unsigned int far * ScreenMask, unsigned char dimx, un
  65. signed char dimy, char hspot, char vspot);
  66. extern int SetPosition (unsigned int pos_x, unsigned int pos_y);
  67. extern int SetRatio (unsigned int hratio, unsigned int vratio);
  68. extern int SetSpeed (unsigned int threshold);
  69. extern int SetSubMask (void (far * sub) (void), unsigned int mask);
  70. extern int SetTcursor (unsigned int ctype, unsigned int cmaskstart, unsigned int
  71.  cmaskstop);
  72. extern int SetXlimits (unsigned int min_x, unsigned int max_x);
  73. extern int SetYlimits (unsigned int min_y, unsigned int max_y);
  74. extern int ShowCursor (void);
  75. --- Mouse.h --- cut here --- Mouse.h --- cut here --- Mouse.h --- cut here -----
  76.  
  77. I need any information about these functions (parameters, return value, what are
  78. used for, etc...) and about the file ( where does it came from ).
  79.  
  80. Please answer by E-Mail.
  81.  
  82. Thank you and sorry for my ugly English.
  83.  
  84. --
  85.  
  86. _______________________________ | According  to the  latest  official  figures,
  87. __/~\_______/~\____/~~~~~~~\___ | 43% of all statistics are totally worthless.
  88. __/~~\_____/~~\___/~\_____/~\__ | _____________________________________________
  89. __/~~~\___/~~~\___/~\_____/~\__ |       Marco Gualdi  ---  MaGu on irc
  90. __/~\/~\_/~\/~\___/~\__________ |        (monta_l@dist.dist.unige.it)
  91. __/~\_/~~~\_/~\___/~\__/~~~~\__ | _____________________________________________
  92. __/~\__/~\__/~\___/~\_____/~\__ | To be sure of hitting the target, shoot first
  93. __/~\_______/~\___/~\_____/~\__ | and, whatever you hit, call it the target.
  94. __/~\_______/~\____/~~~~~~~\___ | _____________________________________________
  95.  
  96.