home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_05
/
2n05038a
< prev
next >
Wrap
Text File
|
1991-03-27
|
3KB
|
92 lines
/*
TITLE: Header file for MicroSoft mouse library;
FILENAME: MOUSELIB.H;
COMPILER: Turbo C V. 1.5+;
NOTES: Has most calls to Microsoft Mouse Driver Functions;
*/
/* Int 33h Functions */
#if !defined(MOUSELIB_H)
#define MOUSELIB_H
#if defined(__cplusplus)
extern "C" {
#endif
#define LEFT_BUTTON 1
#define RIGHT_BUTTON 2
#define BOTH_BUTTONS 3
int mouse_reset(int *num_buttons); /* Func 00h */
void mouse_show(void); /* Func 01h */
void mouse_hide(void); /* Func 02h */
int mouse_get_pos(int *x, int *y); /* Func 03h */
void mouse_set_pos(int x, int y); /* Func 04h */
int mouse_button_press(int *x, int *y, int *count, int button);
/* Func 05h */
int mouse_button_rel(int *x, int *y, int *count, int button);
/* Func 06h */
void mouse_limit_x(int min_x, int max_x); /* Func 07h */
void mouse_limit_y(int min_y, int max_y); /* Func 08h */
void mouse_set_graphcursor(int xspot,int yspot,void far *masks);
/* Func 09h */
void mouse_set_textcursor(int cursor_type,int scr_mask,int curs_mask);
/* Func 0Ah */
void mouse_get_movement(int *x,int *y); /* 0Bh */
void mouse_set_eventhandler(int event_mask, void far (*mhandler)());
/* Func 0Ch */
void mouse_start_pen_emul(void); /* Func 0Dh */
void mouse_stop_pen_emul(void); /* Func 0Eh */
void mouse_set_movement_ratio(int x_ratio,int y_ratio);
/* Func 0Fh */
void mouse_conditional_off(int left,int top,int right,int bottom);
/* Func 10h */
void mouse_set_speed(int threshold); /* Func 13h */
void far *mouse_swap_vector(int new_mask,int *old_mask,void far *new_vector);
/* Func 14h */
int mouse_get_bufsize(void); /* Func 15h */
void mouse_save_state(void far *state_buf); /* Func 16h */
void mouse_restore_state(void far *state_buf); /* Func 17h */
void mouse_set_alt_handler(int alt_mask,void far (*func)());
/* Func 18h */
int mouse_get_alt_handler(int alt_mask,void far *handler);
/* Func 19h */
void mouse_set_sens(int x_ratio,int y_ratio,int threshold);
/* Func 1Ah */
void mouse_get_sens(int *x_ratio,int *y_ratio,int *threshold);
/* Func 1Bh */
void mouse_set_crt_page(int crt_page); /* Func 1Dh */
int mouse_get_crt_page(void); /* Func 1Eh */
int mouse_disable_drvr(void far *vector_33h);
/* Func 1Fh */
void mouse_enable_drvr(void); /* Func 20h */
int mouse_soft_reset(int *nbuttons); /* Func 21h */
#if defined(__cplusplus)
};
#endif
#endif