• Peter Hutterer's avatar
    touchpad: use pressure values for touch is-down decision · 568d527c
    Peter Hutterer authored
    Don't rely on BTN_TOUCH for "finger down", the value for that is hardcoded in
    the kernel and not always suitable. Some devices need a different value to
    avoid reacting to accidental touches or hovering fingers.
    Implement a basic Schmitt trigger, same as we have in the synaptics driver. We
    also take the default values from there but these will likely see some
    A special case is when we have more fingers down than slots. Since we can't
    detect the pressure on fake fingers (we only get a bit for 'is down') we
    assume that *all* fingers are down with sufficient pressure. It's too much of
    a niche case to have this work any other way.
    This patch drops the handling of ABS_DISTANCE because it's simply not needed
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
litest-device-alps-semi-mt.c 3.89 KB