#define MS_ALL_BUTTONS 0xFFFF /* псевдо-скан коды возвращаемые MouseKeyWord */ #define ms_L 0x01 #define ms_R 0x04 #define ms_LR 0x05 #define ms_C 0x02 #define ms_LC 0x03 #define ms_RC 0x06 #define ms_LRC 0x07 /* button masks */ #define left_b 0x0001 #define right_b 0x0002 #define center_b 0x0004 /* call masks */ #define pos_changed 0x0001 #define left_press 0x0002 #define left_release 0x0004 #define right_press 0x0008 #define right_release 0x0010 #define center_press 0x0020 #define center_release 0x0040 #ifndef _IN_MOUSE extern #endif boolean mouse_present #ifdef _IN_MOUSE =FALSE #endif ; boolean ms_init(int *nButtons); void ms_show(void); void ms_hide(void); void ms_read(unsigned *x, unsigned *y, unsigned *b_mask); void ms_set_pos(unsigned x, unsigned y); unsigned ms_get_b(unsigned b_mask, unsigned *count, unsigned *last_x, unsigned *last_y); unsigned ms_get_b_release(unsigned b_mask, unsigned *count, unsigned *last_x, unsigned *last_y); void ms_set_hminmax(unsigned min, unsigned max); void ms_set_vminmax(unsigned min, unsigned max); void ms_set_graphPointer(unsigned hotx, unsigned hoty, void *image); void ms_set_textPointer(unsigned select, char screen_char, char screen_attr, char pointer_char, char pointer_attr); void ms_read_motion(unsigned *hCount, unsigned *vCount); void ms_set_routine(unsigned call_mask, void *sub); void ms_lightpen_on(void); void ms_lightpen_off(void); void ms_set_MPP(unsigned hMPP, unsigned vMPP); void ms_cond_off(unsigned top, unsigned left, unsigned bottom, unsigned right); void ms_set_2speed( unsigned MPS); void ms_swap_routine(unsigned call_mask, void *sub, unsigned *last_call_mask, void **last_sub); unsigned ms_get_state_bfsz(void); void ms_get_state(void *ms_state); void ms_set_state(void *ms_state); boolean mouse_pressed(void); unsigned mousekeyword(void); void mouse_init(void);