• Matt Mayfield's avatar
    touchpad: revamp thumb detection · 4536b5b3
    Matt Mayfield authored
    Instead of a simple yes/no/maybe for thumbs, have a more extensive state
    machine that keeps track of the thumb. Since we only support one thumb anyway,
    the tracking moves to the tp_dispatch struct.
    Test case changes:
      with better thumb detection we can now handle this properly and expect a
      right button (2fg) press for the test case
      two thumbs are now always two fingers, so let's switch to axis events here
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
test-touchpad.c 202 KB