Home | History | Annotate | Download | only in usb

Lines Matching defs:fingers

40  * multiple fingers to emulate multi-button mice and scroll wheels.
80 * emulate a three-button mouse by leaving two or three fingers on the
357 * Button emulation. What do we do when two or three fingers
376 * Multifinger tracking. What do we do with multiple fingers?
425 Fingers on the trackpad don't change it
528 unsigned int sc_tapping_fingers; /* No. fingers tapping. */
529 unsigned int sc_tapped_fingers; /* No. fingers of last tap. */
1022 "buttons to emulate with two fingers on trackpad"))
1026 "buttons to emulate with three fingers on trackpad"))
1052 "0 to ignore multiple fingers, 1 to reset, 2 to scroll"))
1717 unsigned int fingers;
1732 /* No fingers: clear position and maybe report a tap. */
1754 fingers = uimax(x_fingers, y_fingers);
1755 CHECK((0 < fingers), return false);
1757 tap_touched(sc, fingers);
1758 else if (fingers == 1)
1760 else /* Multiple fingers, button pressed. */
1761 *buttons = emulated_buttons(sc, fingers);
1762 update_position(sc, fingers, x_raw, y_raw, dx, dy, dz, dw);
1773 * the number, mean position, and pressure of fingers. Returns 0 to
1774 * indicate no pressure, returns 1 and sets *position and *fingers to
1775 * indicate fingers, and returns 2 to indicate palm.
1783 unsigned int *position, unsigned int *fingers)
1910 *fingers = n_fingers;
1921 * touch, we record the maximum number of fingers touched, and don't
1925 * (no tapping fingers; no tapped fingers)
1930 * (tapping fingers; no tapped fingers)
1936 * (no tapping fingers; tapped fingers)
1943 * (tapping fingers; tapped fingers)
1950 * (no tapping fingers; tapped fingers)
1955 * (no tapping fingers; tapped fingers)
1960 * (tapping fingers; tapped fingers)
1966 * with tapped fingers and those without. The only path from any state
1967 * without tapped fingers to a state with tapped fingers must pass
1969 * must be from states with tapping fingers, which become the tapped
1970 * fingers. If you edit the state machine, you must either preserve
2111 unsigned int fingers)
2113 CHECK((sc->sc_tapping_fingers <= fingers),
2115 tap_transition(sc, TAP_STATE_TAPPING, start_time, fingers, 0);
2120 const struct timeval *start_time, unsigned int fingers)
2122 CHECK((sc->sc_tapping_fingers <= fingers),
2126 tap_transition(sc, TAP_STATE_DOUBLE_TAPPING, start_time, fingers,
2141 const struct timeval *start_time, unsigned int fingers)
2143 CHECK((sc->sc_tapping_fingers <= fingers),
2147 tap_transition(sc, TAP_STATE_TAPPING_IN_DRAG, start_time, fingers,
2157 * The fingers that were tapping -- of which there must have
2158 * been at least one -- are now the fingers that have tapped,
2159 * and there are no longer fingers tapping.
2178 tap_touched(struct uatp_softc *sc, unsigned int fingers)
2182 CHECK((0 < fingers), return);
2187 * Guarantee that the number of tapping fingers never decreases
2190 if (fingers < sc->sc_tapping_fingers)
2191 fingers = sc->sc_tapping_fingers;
2195 tap_transition_tapping(sc, &now, fingers);
2200 * Number of fingers may have increased, so transition
2203 tap_transition_tapping(sc, &sc->sc_tap_timer, fingers);
2213 tap_transition_double_tapping(sc, &now, fingers);
2231 tap_transition_tapping_in_drag(sc, &now, fingers);
2236 * Number of fingers may have increased, so transition
2239 tap_transition_tapping_in_drag(sc, &sc->sc_tap_timer, fingers);
2265 /* Spurious interrupt: fingers are already off. */
2296 * saving the tapping fingers. There
2300 unsigned int fingers = sc->sc_tapping_fingers;
2303 sc->sc_tapping_fingers = fingers;
2383 * Emulate different buttons if the user holds down n fingers while
2388 emulated_buttons(struct uatp_softc *sc, unsigned int fingers)
2390 CHECK((1 < fingers), return 0);
2392 switch (fingers) {
2410 * number of fingers. dx, dy, dz, and dw are expected to hold zero;
2415 update_position(struct uatp_softc *sc, unsigned int fingers,
2419 CHECK((0 < fingers), return);
2421 if ((fingers == 1) || (sc->sc_knobs.multifinger_track == 1))