home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PROG_GEN / FACETV.ZIP / MSRBUTT.CPP < prev    next >
C/C++ Source or Header  |  1994-01-05  |  1KB  |  62 lines

  1. /************************************************************************
  2. **
  3. ** @(#)msrbutt.cpp    01/05/94    Chris Ahlstrom
  4. **
  5. **    This module interfaces C++ with code for handling various kinds
  6. ** of button devices; the substrate is Borland's Turbo Vision.
  7. **
  8. *************************************************************************/
  9.  
  10. #define MSRBUTT_cpp
  11.  
  12. #include "msrbutt.h"        // MouseResponseButton class
  13.  
  14. extern "C"
  15. {
  16.     #include "tmouse.h"        // a few mouse routines [readMouseButtons()]
  17. }
  18.  
  19.  
  20.  
  21. /************************************************************************
  22. ** MouseResponseButton constructor
  23. *************************************************************************/
  24.  
  25. MouseResponseButton::MouseResponseButton ()
  26.   :
  27.     ResponseButton(MOUSE_RESPONSE)
  28. {
  29. }
  30.  
  31.  
  32. MouseResponseButton::~MouseResponseButton ()
  33. {
  34. }
  35.  
  36.  
  37. /************************************************************************
  38. ** readKey() override
  39. **
  40. **    Function to read the mouse buttons.
  41. **
  42. **    See the Response typedef in rbuttons.h.
  43. **
  44. *************************************************************************/
  45.  
  46. int
  47. MouseResponseButton::readKey ()
  48. {
  49.     return (int) readMouseButtons();
  50. }
  51.  
  52.  
  53. /************************************************************************
  54. ** waitKey()
  55. ** checkAbort()
  56. ** getLastResponse()
  57. **
  58. **    These functions don't need overriding.
  59. **
  60. *************************************************************************/
  61.  
  62.