///////////////////////////////////////////////////////////////////// // // MEVT.H // // class NODE // // RomaNets Text Windows Library (RTWL) // // version 0.60 // // David G. Roberts // #ifndef __MEVT_H #define __MEVT_H #include #include #include #define ME_CENTER_RELEASED (0x40) #define ME_CENTER_PRESSED (0x20) #define ME_RIGHT_RELEASED (0x10) #define ME_RIGHT_PRESSED (0x08) #define ME_LEFT_RELEASED (0x04) #define ME_LEFT_PRESSED (0x02) #define ME_MOVEMENT (0x01) #define ALL_EVENTS (0x7F) #define CENTER_BUTTON_MASK (0x04) #define RIGHT_BUTTON_MASK (0x02) #define LEFT_BUTTON_MASK (0x01) #define MOUSE_INT (0x33) #define FC_RESET_MOUSE (0x0000) #define FC_SHOW_CURSOR (0x0001) #define FC_HIDE_CURSOR (0x0002) #define FC_SET_EVENT_HANDLER (0x000C) #define TRUE 1 #define FALSE 0 typedef unsigned int UINT16; typedef int BOOL; typedef struct { UINT16 InUse; UINT16 Event; UINT16 ButtonState; UINT16 X; UINT16 Y; UINT16 XMickeys; UINT16 YMickeys; } MOUSE_EVENT; typedef struct { UINT16 Length; UINT16 Read; UINT16 Write; MOUSE_EVENT far *Queue; } MOUSE_QUEUE; static MOUSE_QUEUE mq; static BOOL HandlerInstalled = FALSE; int ResetMouse( void); void ShowMouseCursor( void); void HideMouseCursor( void); void SetMouseEventHandler( UINT16 EventMask, void far *Handler); int InstallMouseEventQueue( UINT16 Length, UINT16 EventMask); void RemoveMouseEventQueue( void); BOOL QueryMouseEventWaiting( void); int PeekMouseEvent( MOUSE_EVENT *MouseEvent); int GetMouseEvent( MOUSE_EVENT *MouseEvent); //void SetMousePos( UINT16 x, UINT16 y); #endif /* __MEVT_H */