/ * Mouse.h code Writing: Wang Jiabao last updated: 2000.04.01
Uses: Get mouse action, simple control of the mouse * /
#define double_click_time 4 / * Define the double time as 1 second * / int mouse_visible = 0; / * mouse cursor is showed or hide showed 1, hide 0 * /
INT mouse_there = 0; / * if mouse has = 2; / * The mouse key's number * / int bouse = 0; / * The button's WHERTHE or NOT IS PRESSED * / INT CMX = 0, CMY = 0; / * the mouse's x coords, y coords * / int mouse_moved = 0; unsigned char lbutton_down = 0, RButton_down = 0, lbutton_up = 0, RButton_up = 0; / * The Each Mouse Button's Status * /
int MS_ARROW [32] = {0x9fff, 0x8fff, 0x87ff, 0x83ff, 0x81ff, 0x80ff, 0x80ff, 0x803f, 0x801f, 0x800f, 0x80ff, 0x887f, 0x987f, 0xfc3f, 0xfc3f, 0xfe3f, 0x0000,0x2000,0x3000,0x3800,0x3c00,0x3e00 0x3f00, 0x3f80, 0x3fc0, 0x3e00, 0x3600, 0x2300, 0x0300, 0x0180, 0x0180, 0x0000}; / * set mouse cursor "^ /" * / int ms_ibeam [32] = {0xE187, 0XE007, 0XFC3F, 0xFC3F, 0xFC3F, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xfc3f, 0xe007,0xe187, 0x0000,0x0e70,0x0180,0x0180,0x0180,0x0180,0x0180,0x0180, 0x0180,0x0180,0x0180,0x0180,0x0180,0x0180, 0x0e70, 0x0000}; / * set mouse cursor "i" * / int ms_wait [32] = {0x8001, 0XC003, 0XC003, 0XC003, 0XC003, 0XE007, 0XF00F, 0XF81F, 0xF81F, 0xF00F, 0xE007, 0XC003, 0XC003, 0XC003, 0xc003,0x8001, 0x7ffe, 0x2004,0x2004,0x2004,0x2664,0x13c8,0x0990,0x0420, 0x0420,0x0990,0x13c8,0x27e4,0x2ff4,0x2ff4,0x2004,0x7ff3}; / * set mouse cursor waitting cursor * / int MS_HAND [32 ] = {0xF3FF, 0xE1FF, 0xE1FF, 0xE1FF, 0xE001, 0XE000, 0XE000, 0X0, 0X0, 0X0, 0X0, 0X0, 0X8001, 0XC003, 0XC00 , 0x1200,0x1200,0x1200,0x13fe, 0x1249,0x1249,0x1249, 0x7249,0x9001,0x9001,0x9001,0x8001,0x8001,0x4002,0xeffc}; / * set hand cursor * // * the above three num group is used by mouse Function 9 * /