Lines Matching defs:para

735     SynapticsParameters *para = &priv->synpara;
741 * velocity, which we recover this way so para->accl retains its scale.
746 accelfct = velocity * para->accl;
749 if (accelfct > para->max_speed * acc)
750 accelfct = para->max_speed * acc;
751 else if (accelfct < para->min_speed)
752 accelfct = para->min_speed;
756 int minZ = para->press_motion_min_z;
757 int maxZ = para->press_motion_max_z;
758 double minFctr = para->press_motion_min_factor;
759 double maxFctr = para->press_motion_max_factor;
1377 is_inside_button_area(SynapticsParameters * para, int which, int x, int y)
1388 if (para->softbutton_areas[which][LEFT] == 0 &&
1389 para->softbutton_areas[which][RIGHT] == 0 &&
1390 para->softbutton_areas[which][TOP] == 0 &&
1391 para->softbutton_areas[which][BOTTOM] == 0)
1394 if (para->softbutton_areas[which][LEFT] &&
1395 x < para->softbutton_areas[which][LEFT])
1397 else if (para->softbutton_areas[which][RIGHT] &&
1398 x > para->softbutton_areas[which][RIGHT])
1400 else if (para->softbutton_areas[which][TOP] &&
1401 y < para->softbutton_areas[which][TOP])
1403 else if (para->softbutton_areas[which][BOTTOM] &&
1404 y > para->softbutton_areas[which][BOTTOM])
1411 is_inside_rightbutton_area(SynapticsParameters * para, int x, int y)
1413 return is_inside_button_area(para, 0, x, y);
1417 is_inside_middlebutton_area(SynapticsParameters * para, int x, int y)
1419 return is_inside_button_area(para, 1, x, y);
1505 SynapticsParameters *para = &priv->synpara;
1510 if (para->emulate_mid_button_time <= 0)
1532 para->emulate_mid_button_time, now);
1557 para->emulate_mid_button_time, now);
1604 SynapticsParameters *para = &priv->synpara;
1608 if (hw->z < para->finger_low)
1614 if (hw->z > para->finger_high && priv->finger_state == FS_UNTOUCHED)
1619 if (!para->palm_detect)
1624 if ((hw->z > para->palm_min_z) && (hw->fingerWidth > para->palm_min_width))
1636 ((safe_width < 6) && (priv->prev_z < para->finger_high)) || /* thin finger, distinct touch -> not a palm */
1637 ((safe_width < 7) && (priv->prev_z < para->finger_high / 2))) { /* thin finger, distinct touch -> not a palm */
1644 else if (hw->fingerWidth > para->palm_min_width) /* finger width too large -> probably palm */
1750 SynapticsParameters *para = &priv->synpara;
1756 return para->tap_time;
1758 return para->click_time;
1760 return para->single_tap_timeout;
1762 return para->tap_time_2;
1764 return para->locked_drag_time;
1775 SynapticsParameters *para = &priv->synpara;
1790 ((abs(hw->x - priv->touch_on.x) >= para->tap_move) ||
1791 (abs(hw->y - priv->touch_on.y) >= para->tap_move)));
1802 if (hw->z > para->finger_high)
1816 if (para->clickpad && press) {
1843 if (para->clickpad && press) {
1875 if (para->tap_and_drag_gesture) {
1885 if (para->tap_and_drag_gesture) {
1901 if (para->clickpad && press) {
1909 if (para->locked_drags) {
2126 SynapticsParameters *para = &priv->synpara;
2131 if ((priv->scroll.packets_this_scroll > 3) && (para->coasting_speed > 0.0)) {
2138 double scrolls_per_sec = (dy / abs(para->scroll_dist_vert)) / pkt_time;
2140 if (fabs(scrolls_per_sec) >= para->coasting_speed) {
2150 double scrolls_per_sec = (dx / abs(para->scroll_dist_vert)) / pkt_time;
2152 if (fabs(scrolls_per_sec) >= para->coasting_speed) {
2162 double scrolls_per_sec = (da / para->scroll_dist_circ) / pkt_time;
2164 if (fabs(scrolls_per_sec) >= para->coasting_speed) {
2196 SynapticsParameters *para = &priv->synpara;
2214 if (para->circular_scrolling) {
2215 if ((para->circular_trigger == 0 && edge) ||
2216 (para->circular_trigger == 1 && edge & TOP_EDGE) ||
2217 (para->circular_trigger == 2 && edge & TOP_EDGE &&
2218 edge & RIGHT_EDGE) || (para->circular_trigger == 3 &&
2220 (para->circular_trigger == 4 && edge & RIGHT_EDGE &&
2221 edge & BOTTOM_EDGE) || (para->circular_trigger == 5 &&
2223 (para->circular_trigger == 6 && edge & BOTTOM_EDGE &&
2224 edge & LEFT_EDGE) || (para->circular_trigger == 7 &&
2226 (para->circular_trigger == 8 && edge & LEFT_EDGE &&
2239 (para->scroll_twofinger_vert) &&
2240 (para->scroll_dist_vert != 0)) {
2248 (para->scroll_twofinger_horiz) &&
2249 (para->scroll_dist_horiz != 0)) {
2261 if ((para->scroll_edge_vert) && (para->scroll_dist_vert != 0) &&
2267 if ((para->scroll_edge_horiz) && (para->scroll_dist_horiz != 0)
2313 if (para->scroll_edge_corner &&
2336 if ((oldv || oldh) && !para->scroll_edge_corner) {
2346 if (para->scroll_edge_corner) {
2355 else if (para->circular_scrolling) {
2366 if (para->scroll_edge_corner) {
2375 else if (para->circular_scrolling) {
2392 if (para->scroll_dist_vert != 0 && hw->y != priv->scroll.last_y) {
2399 if (para->scroll_dist_horiz != 0 && hw->x != priv->scroll.last_x) {
2406 double delta = para->scroll_dist_circ;
2411 priv->scroll.delta_y -= diff / delta * para->scroll_dist_vert;
2413 priv->scroll.delta_x -= diff / delta * para->scroll_dist_horiz;
2420 double ddy = para->coasting_friction * dtime;
2422 priv->scroll.delta_y += priv->scroll.coast_speed_y * dtime * abs(para->scroll_dist_vert);
2436 double ddx = para->coasting_friction * dtime;
2437 priv->scroll.delta_x += priv->scroll.coast_speed_x * dtime * abs(para->scroll_dist_horiz);
2514 SynapticsParameters *para = &priv->synpara;
2524 if (para->clickpad)
2529 action = para->click_action[F1_CLICK1];
2532 action = para->click_action[F2_CLICK1];
2535 action = para->click_action[F3_CLICK1];
2558 SynapticsParameters *para = &priv->synpara;
2569 if (para->clickpad) {
2573 if (is_inside_rightbutton_area(para, hw->x, hw->y)) {
2577 else if (is_inside_middlebutton_area(para, hw->x, hw->y)) {
2598 if (hw->numFingers == 1 && hw->z >= para->emulate_twofinger_z &&
2599 hw->fingerWidth >= para->emulate_twofinger_w) {
2670 SynapticsParameters *para = &priv->synpara;
2676 if (para->click_action[F3_CLICK1] || para->tap_action[F3_TAP])
2678 else if (para->click_action[F2_CLICK1] || para->tap_action[F2_TAP] ||
2679 para->scroll_twofinger_vert || para->scroll_twofinger_horiz)
2750 SynapticsParameters *para = &priv->synpara;
2752 priv->hyst_center_x = hysteresis(*x, priv->hyst_center_x, para->hyst_x);
2753 priv->hyst_center_y = hysteresis(*y, priv->hyst_center_y, para->hyst_y);
2783 SynapticsParameters *para = &priv->synpara;
2794 if (para->touchpad_off == TOUCHPAD_OFF) {
2804 if (para->clickpad)
2814 if (para->clickpad && (hw->left || hw->right || hw->middle)) {