if (send_raw_mouse) {
if (send_raw_mouse && !(cfg.mouse_override && shift)) { lastbtn = MBT_NOTHING;
static void click(Mouse_Button b, int x, int y, int shift, int ctrl){    int thistime = GetMessageTime();    if (send_raw_mouse) {	term_mouse(b, MA_CLICK, x, y, shift, ctrl);	return;    }    if (lastbtn == b && thistime - lasttime < dbltime) {	lastact = (lastact == MA_CLICK ? MA_2CLK :		   lastact == MA_2CLK ? MA_3CLK :		   lastact == MA_3CLK ? MA_CLICK : MA_NOTHING);    } else {	lastbtn = b;	lastact = MA_CLICK;    }    if (lastact != MA_NOTHING)	term_mouse(b, lastact, x, y, shift, ctrl);    lasttime = thistime;}