Lines Matching full:mouse_buttons
490 int old_buttons = state->mouse_buttons;
497 state->mouse_buttons |= (1 << (button-1));
499 state->mouse_buttons &= ~(1 << (button-1));
506 if(state->mouse_buttons != old_buttons || button >= 4) {
515 if((state->mouse_flags & MOUSE_WANT_DRAG && state->mouse_buttons) ||
517 int button = state->mouse_buttons & 0x01 ? 1 :
518 state->mouse_buttons & 0x02 ? 2 :
519 state->mouse_buttons & 0x04 ? 3 : 4;
780 state->mouse_buttons = 0;