home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / cxl-1.zip / CXLMOU.H < prev    next >
C/C++ Source or Header  |  1989-03-27  |  3KB  |  61 lines

  1. /*
  2.    ┌──────────────────────────────────────────────────────────────────────────┐
  3.    │                                                                          │
  4.    │  CXLMOU.H  -  CXL is Copyright (c) 1987-1989 by Mike Smedley.            │
  5.    │                                                                          │
  6.    │  This header file contains function prototypes and definitions for       │
  7.    │  Microsoft compatible mouse functions.                                   │
  8.    │                                                                          │
  9.    └──────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. #if defined(__TURBOC__)                         /* Turbo C */
  13.     #if __STDC__
  14.         #define _Cdecl
  15.     #else
  16.         #define _Cdecl  cdecl
  17.     #endif
  18.     #define _Near
  19. #elif defined(__ZTC__)                          /* Zortech C++ */
  20.     #define _Cdecl
  21.     #define _Near
  22. #elif defined(M_I86) && !defined(__ZTC__)       /* Microsoft C/QuickC */
  23.     #if !defined(NO_EXT_KEYS)
  24.         #define _Cdecl  cdecl
  25.         #define _Near   near
  26.     #else
  27.         #define _Cdecl
  28.         #define _Near
  29.     #endif
  30. #elif defined(__POWERC__)                       /* Power C */
  31.     #define _Cdecl
  32.     #define _Near
  33. #endif
  34.  
  35. /*---------------------------[ function prototypes ]-------------------------*/
  36.  
  37. void    _Cdecl msbclear(void);
  38. void    _Cdecl msbpress(int button,int *bstat,int *bcount,int *row,int *col);
  39. void    _Cdecl msbreles(int button,int *bstat,int *bcount,int *row,int *col);
  40. void    _Cdecl mscondoff(int srow,int scol,int erow,int ecol);
  41. void    _Cdecl mscursor(unsigned curtype,unsigned smask,unsigned cmask);
  42. void    _Cdecl msgotoxy(int row,int col);
  43. void    _Cdecl mshbounds(int leftcol,int rightcol);
  44. void    _Cdecl mshidecur(void);
  45. int     _Cdecl msinit(void);
  46. void    _Cdecl msmotion(int *rowcount,int *colcount);
  47. void    _Cdecl msshowcur(void);
  48. void    _Cdecl msspeed(int xratio,int yratio);
  49. void    _Cdecl msstatus(int *bstat,int *row,int *col);
  50. void    _Cdecl mssupport(int type);
  51. void    _Cdecl msvbounds(int toprow,int botrow);
  52.  
  53. extern int _Near _Cdecl _mouse;  /* mouse support level */
  54.  
  55. /*----------------------[ mouse support definitions ]------------------------*/
  56.  
  57. #define MS_NONE     0   /* no mouse support                         */
  58. #define MS_KEYS     1   /* mouse movement emulates arrow keys       */
  59. #define MS_CURS     2   /* free-moving mouse cursor where supported */
  60. #define MS_FULL     3   /* full mouse support (MS_KEYS | MS_CURS)   */
  61.