Lines Matching refs:buttons

84 	return t->point.y >= tp->buttons.bottom_area.top_edge;
92 t->point.x > tp->buttons.bottom_area.rightbutton_left_edge;
101 t->point.x > tp->buttons.bottom_area.middlebutton_left_edge;
108 return t->point.y <= tp->buttons.top_area.bottom_edge;
116 t->point.x > tp->buttons.top_area.rightbutton_left_edge;
124 t->point.x >= tp->buttons.top_area.leftbutton_right_edge &&
125 t->point.x <= tp->buttons.top_area.rightbutton_left_edge;
597 /* Ignore other buttons on clickpads */
598 if (tp->buttons.is_clickpad && e->code != BTN_LEFT) {
606 tp->buttons.state |= mask;
609 tp->buttons.state &= ~mask;
618 if (tp->buttons.state) {
619 tp->buttons.state = 0;
644 tp->buttons.bottom_area.top_edge = edges.y;
645 tp->buttons.bottom_area.rightbutton_left_edge = edges.x;
647 tp->buttons.bottom_area.middlebutton_left_edge = INT_MAX;
680 tp->buttons.bottom_area.middlebutton_left_edge = mb_le;
681 tp->buttons.bottom_area.rightbutton_left_edge = mb_re;
691 if (tp->buttons.has_topbuttons) {
705 tp->buttons.top_area.bottom_edge = edges.y;
706 tp->buttons.top_area.rightbutton_left_edge = edges.x;
710 tp->buttons.top_area.leftbutton_right_edge = edges.x;
712 tp->buttons.top_area.bottom_edge = INT_MIN;
723 if (tp->buttons.is_clickpad) {
749 switch (tp->buttons.click_method) {
755 tp->buttons.bottom_area.top_edge = INT_MAX;
767 tp->buttons.click_method = method;
779 return tp->buttons.click_method;
795 if (!tp->buttons.is_clickpad)
818 if (!tp->buttons.is_clickpad ||
819 tp->buttons.state != 0)
827 if (tp->buttons.click_method ==
896 if (tp->buttons.is_clickpad) {
936 * - Wacom touch devices have neither left nor right buttons
969 tp->buttons.is_clickpad = tp_guess_clickpad(tp, device);
971 tp->buttons.has_topbuttons = libevdev_has_property(device->evdev,
978 tp->buttons.motion_dist.x_scale_coeff = 1.0/absinfo_x->resolution;
979 tp->buttons.motion_dist.y_scale_coeff = 1.0/absinfo_y->resolution;
981 tp->buttons.config_method.get_methods = tp_button_config_click_get_methods;
982 tp->buttons.config_method.set_method = tp_button_config_click_set_method;
983 tp->buttons.config_method.get_method = tp_button_config_click_get_method;
984 tp->buttons.config_method.get_default_method = tp_button_config_click_get_default_method;
985 tp->device->base.config.click_method = &tp->buttons.config_method;
987 tp->buttons.click_method = tp_click_get_default_method(tp);
1028 current = tp->buttons.state;
1029 old = tp->buttons.old_state;
1171 /* If we've a trackpoint, send top buttons through the trackpoint */
1172 if (tp->buttons.trackpoint) {
1174 struct evdev_dispatch *dispatch = tp->buttons.trackpoint->dispatch;
1182 tp->buttons.trackpoint,
1186 tp->buttons.trackpoint,
1204 if (tp->buttons.click_method == LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER &&
1207 tp->buttons.active = button;
1225 current = tp->buttons.state;
1226 old = tp->buttons.old_state;
1229 if (!tp->buttons.click_pending && current == old)
1244 tp->buttons.click_pending = true;
1277 tp->buttons.click_method != LIBINPUT_CONFIG_CLICK_METHOD_CLICKFINGER) {
1279 tp->buttons.click_pending = true;
1303 tp->buttons.active = button;
1304 tp->buttons.active_is_topbutton = is_top;
1307 button = tp->buttons.active;
1308 is_top = tp->buttons.active_is_topbutton;
1309 tp->buttons.active = 0;
1310 tp->buttons.active_is_topbutton = 0;
1314 tp->buttons.click_pending = false;
1328 if (tp->buttons.is_clickpad ||