90 lines
2.7 KiB
C
90 lines
2.7 KiB
C
/************************/
|
||
/* mouse.h */
|
||
/************************/
|
||
#ifndef _MOUSE_H_
|
||
#define _MOUSE_H_
|
||
|
||
//#include "menu.h"
|
||
|
||
// ????ýÖ¢t
|
||
|
||
#define MOUSE_NO_CRICK 0 // ???????
|
||
#define MOUSE_LEFT_CRICK ( 1 << 0 ) // ?????ýÖ¢t
|
||
#define MOUSE_RIGHT_CRICK ( 1 << 1 ) // ?????ýÖ¢t
|
||
#define MOUSE_LEFT_CRICK_UP ( 1 << 2 ) // ????????ýÖ¢t
|
||
#define MOUSE_RIGHT_CRICK_UP ( 1 << 3 ) // ????????ýÖ¢t
|
||
#define MOUSE_LEFT_DBL_CRICK ( 1 << 4 ) // ????????ýÖ¢t
|
||
#define MOUSE_RIGHT_DBL_CRICK ( 1 << 5 ) // ????????ýÖ¢t
|
||
//#define MOUSE_LEFT_AUTO_CRICK ( 1 << 6 ) // ????????ýÖ¢t
|
||
//#define MOUSE_RIGHT_AUTO_CRICK ( 1 << 7 ) // ????????ýÖ¢t
|
||
|
||
// ?????¤õ ?¢B¢l
|
||
typedef struct{
|
||
int x, y; // ????( ?,? )?¤õ
|
||
}MOUSE_POINT;
|
||
|
||
// ????¢B¢l
|
||
typedef struct{
|
||
MOUSE_POINT nowPoint; // ????????¤õ
|
||
MOUSE_POINT crickLeftDownPoint; // ???????????????¤õ
|
||
MOUSE_POINT crickLeftUpPoint; // ?????????????????¤õ
|
||
MOUSE_POINT crickRightDownPoint;// ???????????????¤õ
|
||
MOUSE_POINT crickRightUpPoint; // ?????????????????¤õ
|
||
int state; // ???????ýÖ¢t????????
|
||
int onceState; // ???????ýÖ¢t????????????????£k?¦V?
|
||
int autoState; // ???????ýÖ¢t???????
|
||
UINT beforeLeftPushTime; // ??????????????
|
||
UINT leftPushTime; // ??????????????
|
||
UINT beforeRightPushTime;// ??????????????
|
||
UINT rightPushTime; // ??????????????
|
||
UCHAR level; // ?????????????
|
||
int itemNo; // ?????????????§k?
|
||
BOOL flag; // ????????¤úû¨?§‰¤úû¨???
|
||
}MOUSE;
|
||
|
||
// ????? ???
|
||
extern MOUSE mouse;
|
||
|
||
// ????????????????§k????????
|
||
extern int HitFontNo;
|
||
// ?????????????????????????????
|
||
extern int HitDispNo;
|
||
|
||
// ??????§ó??
|
||
extern char OneLineInfoStr[];
|
||
|
||
// ¤úû¨?????ýè
|
||
extern int BoxColor;
|
||
|
||
// ???ýÑ©<C391>???? ////////////////////////////////////////////////////////
|
||
void MouseInit( void );
|
||
|
||
// ????????£t????? //////////////////////////////////////////////
|
||
void MouseNowPoint( int x, int y );
|
||
|
||
// ????????????????????£t????? //////////////////////
|
||
void MouseCrickLeftDownPoint( int x, int y );
|
||
|
||
// ????????????????????£t????? //////////////////////
|
||
void MouseCrickLeftUpPoint( int x, int y );
|
||
|
||
// ????????????????????£t????? //////////////////////
|
||
void MouseCrickRightDownPoint( int x, int y );
|
||
|
||
// ????????????????????£t????? //////////////////////
|
||
void MouseCrickRightUpPoint( int x, int y );
|
||
|
||
// ??????????????????£t????? //////////////////////////
|
||
void MouseDblCrickLeftUpPoint( int x, int y );
|
||
|
||
// ??????????????????£t????? //////////////////////////
|
||
void MouseDblCrickRightUpPoint( int x, int y );
|
||
|
||
// ????? ///////////////////////////////////////////////////////////////
|
||
void MouseProc( void );
|
||
|
||
/* ???????????§R¤e **************************************************/
|
||
void HitMouseCursor( void );
|
||
|
||
#endif
|