home *** CD-ROM | disk | FTP | other *** search
/ Phoenix CD 2.0 / Phoenix_CD.cdr / 01e / mouseng1.zip / HEADER.TXT next >
Text File  |  1988-05-28  |  2KB  |  72 lines

  1. !short:     Global Variables
  2.     ^uGlobals:^u
  3. extern int        ^bmse_xin^b      /* x-input coordinate */
  4. extern int        ^bmse_yin^b      /* y-input coordinate */
  5. extern int        ^bprscnt[2]^b    /* array for count of button presses */
  6. extern int        ^bx_lstprs[2]^b  /* array of x-coords at last press */
  7. extern int        ^by_lstprs[2]^b  /* array of y-coords at last press */
  8. extern int        ^brlscnt[2]^b    /* array for count of button releases */
  9. extern int        ^bx_lstrls[2]^b  /* array of x-coords at last release */
  10. extern int        ^by_lstrls[2]^b  /* array of y-coords at last release */
  11. extern int        ^bh_micks^b      /* horizontal motion counter */
  12. extern int        ^bv_micks^b      /* vertical motion counters */
  13.  
  14. !short:     Functions
  15.     ^uFunctions:^u
  16. /* Reset mouse driver and return current status */
  17. extern ^bint m_reset(void )^b
  18.  
  19. /* Increment cursor flag and display cursor */
  20. extern ^bint m_showcur(void )^b
  21.  
  22. /* Decrement cursor flag and hide cursor */
  23. extern ^bint m_hidecur(void )^b
  24.  
  25. /* Read cursor position and status */
  26. extern ^bint m_readloc(void )^b
  27.  
  28. /* Set cursor position */
  29. extern ^bint m_setloc(int x,int y)^b
  30.  
  31. /* Get mouse button press information */
  32. extern ^bint m_keyprs(int button)^b
  33.  
  34. /* Get mouse button release information */
  35. extern ^bint m_keyrls(int button)^b
  36.  
  37. /* Set horizontal minimum and maximum */
  38. extern ^bint m_setxlim(int xmin,int xmax)^b
  39.  
  40. /* Set vertical minimum and maximum */
  41. extern ^bint m_setylim(int ymin,int ymax)^b
  42.  
  43. /* Define graphics cursor */
  44. extern ^bint m_defgcur(int hot_x,int hot_y,int cur_shape)^b
  45.  
  46. /* Define text cursor */
  47. extern ^bint m_deftcur(int cur_type,int scr_msk,int cur_msk)^b
  48.  
  49. /* Read mouse motion counters */
  50. extern ^bint m_mickeys(void )^b
  51.  
  52. /* Set user-defined subroutine call mask */
  53. extern ^bint m_inpmsk(int call_msk,int offset)^b
  54.  
  55. /* Turn light-pen emulation on */
  56. extern ^bint m_penon(void )^b
  57.  
  58. /* Turn light-pen emulation off */
  59. extern ^bint m_penoff(void )^b
  60.  
  61. /* Set horizontal and vertical motion sensitivity */
  62. extern ^bint m_setasp(int h_ratio,int v_ratio)^b
  63.  
  64. !short:     Defines
  65.     ^uDefines:^u
  66. #define ^bLEFT^b                0
  67. #define ^bRIGHT^b               1
  68. #define ^bLEFT_BUTTON^b         case 1:
  69. #define ^bRIGHT_BUTTON^b        case 2:
  70. #define ^bBOTH_BUTTONS^b        case 3:
  71. #define ^bNO_BUTTONS^b          case 0:
  72.