Lines Matching refs:button
66 int button = state->mouse_buttons & 0x01 ? 1 : in vterm_mouse_move() local
69 output_mouse(state, button-1 + 0x20, 1, mod, col, row); in vterm_mouse_move()
73 void vterm_mouse_button(VTerm *vt, int button, bool pressed, VTermModifier mod) in vterm_mouse_button() argument
79 if(button > 0 && button <= 3) { in vterm_mouse_button()
81 state->mouse_buttons |= (1 << (button-1)); in vterm_mouse_button()
83 state->mouse_buttons &= ~(1 << (button-1)); in vterm_mouse_button()
87 if(state->mouse_buttons == old_buttons && button < 4) in vterm_mouse_button()
90 if(button < 4) { in vterm_mouse_button()
91 output_mouse(state, button-1, pressed, mod, state->mouse_col, state->mouse_row); in vterm_mouse_button()
93 else if(button < 6) { in vterm_mouse_button()
94 output_mouse(state, button-4 + 0x40, pressed, mod, state->mouse_col, state->mouse_row); in vterm_mouse_button()