home *** CD-ROM | disk | FTP | other *** search
/ Kyūkyoku!! X68000 Emulator / X68000Book.dat / mac / OLS / X68000 / Ko-Window / kow142s.lzh / wsrv / mouselib.h < prev    next >
C/C++ Source or Header  |  1991-06-29  |  922b  |  43 lines

  1. /*
  2.  *        â}âEâXè╓Éö
  3.  *
  4.  *            Copyright    T.Kobayashi
  5.  *            1990.1.1
  6.  */
  7.  
  8. #ifndef ON
  9.     #define ON    TRUE
  10.     #define OFF FALSE
  11. #endif
  12.  
  13. /*
  14.     proto -e mouselib.c > temp
  15. */
  16. extern    void    MouseInitialize( void );
  17. extern    void    MouseQuit( void );
  18.  
  19. #define    MSLIB_MACRO        /* 1991 by COR. */
  20.  
  21. #ifndef    MSLIB_MACRO
  22.     extern    void    MouseCursorOn( void );
  23.     extern    void    MouseCursorOff( void );
  24.     extern    void    MouseRegion( int, int, int, int );
  25.     extern    void    MouseMove( int, int );
  26. #else
  27.     #define    MouseCursorOn()                MS_CURON()
  28.     #define    MouseCursorOff()            MS_CUROF()
  29.     #define    MouseRegion(x1,y1,x2,y2)    MS_LIMIT(x1,y1,x2,y2)
  30.     #define    MouseMove(x,y)                MS_CURST(x,y)
  31. #endif
  32.  
  33. extern    void    MouseGetPosition( int*, int* );
  34. extern    void    MouseGetSwitch( int*, int* );
  35. extern    int        KeyGet( void );
  36. extern    int        KeySense( void );
  37.  
  38. #ifndef    MSLIB_MACRO
  39.     extern    void    KeyFlash( void );
  40. #else
  41.     #define    KeyFlash()                    KFLUSHIO(0xfe)
  42. #endif
  43.