home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / TMOUSE.H < prev    next >
C/C++ Source or Header  |  1993-12-09  |  2KB  |  71 lines

  1. /************************************************************************
  2. **
  3. ** @(#)tmouse.h        05/27/92    Chris Ahlstrom
  4. **
  5. **    Mouse routines for local usage, to supplement Turbo Vision.
  6. **
  7. *************************************************************************/
  8.  
  9. #if !defined(TMOUSE_h)                /* { TMOUSE_h    */
  10. #define TMOUSE_h
  11.  
  12.  
  13. #define MOUSEBIOS    0x33        // interrupt to control mouse
  14.  
  15. #define READMOUSE    0x03        // function to read mousy stuff
  16. #define MOUSEPOSITION    0x04        // function to move the mouse
  17. #define READMICKEY    0x0B        // function to read mickeys
  18.  
  19.  
  20. /************************************************************************
  21. ** Return codes for mouseButtonCheck()
  22. *************************************************************************/
  23.  
  24. #define NO_MOUSEBUTTON        0x00
  25. #define LEFT_MOUSEBUTTON    0x01
  26. #define RIGHT_MOUSEBUTTON    0x02
  27. #define BOTH_MOUSEBUTTONS    0x03
  28. #define CENTER_MOUSEBUTTON    0x04
  29.  
  30. #define MOUSE_CHAR_WIDTH     8
  31. #define MOUSE_CHAR_HEIGHT     8    /* text-mode dependent        */
  32.  
  33.  
  34. /************************************************************************
  35. ** readYmickey()
  36. **
  37. **    A global function to return the number of vertical mickeys
  38. ** the mouse moved since the last call to readYmickey.  There is no
  39. ** correspondent routine in TurboVision.
  40. **
  41. ** readMouseButtons()
  42. **
  43. **    Reads the mouse buttons.  I'm not satisfied with the behavior
  44. ** of mouseEvent().
  45. **
  46. ** setMousePosition()
  47. **
  48. **    Puts the mouse at the desired location.
  49. **
  50. **    I copped these routines from the MSMOUSE library and tailored
  51. ** it to our limited usage.
  52. **
  53. ************************************************************************/
  54.  
  55. extern int readYmickey
  56. (
  57.     void
  58. );
  59. extern int readMouseButtons
  60. (
  61.     void
  62. );
  63. extern void setMousePosition
  64. (
  65.     int x,
  66.     int y
  67. );
  68.  
  69.  
  70. #endif                            /* } TMOUSE_h    */
  71.