终于找出来了
#define Lo(f) ( (f)&0xff)
#define Hi(f) (lo(f>>8))
#define Ctrlc 0x2e03
#define Ctrlh 0x2308
#define Ctrli 0x1709
#define Ctrll 0x260c
#define Ctrlk 0x250b
#define Ctrlj 0x240a
#define Ctrlu 0x1615
#define Ctrlr 0x1312
#define Crkey 0x1c0d
#define Ctrlcrkey 0x1c0a
#define Upkey 0x4800
#define Downkey 0x5000
#define Leftkey 0x4b00
#define Rightkey 0x4d00
#define Shiftleft 0x4b34
#define Shiftright 0x4d36
#define Delkey 0x5300
#define Inskey 0x5200
#define Bskey 0x0e08
#define Spacebar 0x3920
#define Pgupkey 0x4900
#define Pgdnkey 0x5100
#define Shiftupkey 0x4838
#define Shiftdnkey 0x5032
#define Shiftpgupkey 0x4939
#define Shiftpgdnkey 0x5133
#define Homekey 0x4700
#define Endkey 0x4f00
#define Esckey 0x011b
#define Alt_d 0x2000
#define Alt_e 0x1200
#define Alt_i 0x1700
#define Alt_r 0x1300
#define Alt_s 0x1f00
#define Alt_t 0x1400
#define Alt_x 0x2d00
#define F10key 0x4400
#define Left_mouse_press 0xff01
#define Right_mouse_press 0xff02
#define Left_mouse_rel 0xff11
#define Right_mouse_rel 0xff12
#define M_reset 0
#define M_show_curs 1
#define M_hide_curs 2
#define M_get_status 3
#define M_set_curs 4
#define M_get_press 5
#define M_get_rel 6
#define M_set_x_bounds 7
#define M_set_y_bounds 8
#define M_set_g_curs 9
#define M_set_t_curs 10
#define Mouse_needed 1
#define Mouse_optional 0
#define Mouse_text_mode 0
extern int mouse_text_x;
extern int mouse_text_y;
extern int mouse_grph_x;
extern int mouse_grph_y;
extern int mouse_initialized;
extern void mouse(int *m1,int *m2,int *m3,int *m4);
extern int check_mouse_driver(int need_mouse);
extern int init_mouse(int need_mouse,int gd,int gm);
extern int mouse_reset(void);
extern void move_mouse(int x,int y);
extern void mouse_on(int code);
extern void mouse_off(int code);
extern void mouse_grph_posn(int *x,int *y);
extern void mouse_txt_posn(int *x,int *y);
extern int mouse_in_box(int graphflag,int left,int right,int top,int bottom);
extern int button_release(int b);
extern int button_press(int b);
extern int button_state(void);
extern int mouse_trigger(int button_dir);
阅读(621) | 评论(0) | 转发(0) |