• Jason Gerecke's avatar
    Input: wacom - send proper tablet state info when pen leaves proximity · 4eb1830b
    Jason Gerecke authored
    The EMR sensor of Intuos4 and newer devices can send a packet with
    0x20 in its second byte which contains only location information.
    This packet is sent when the pen is too far away to reliably obtain
    other information. Because only the location is updated userspace
    will continue to see stale information for other values, most notably
    TOUCH, PRESSURE, and DISTANCE.
    
    This patch ensures userspace is not left with stale device state
    information when the pen re-enters proximity (possibly leading to
    the assumption the pen is still in contact even though it is
    actually hovering).
    Signed-off-by: default avatarJason Gerecke <killertofu@gmail.com>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    4eb1830b
wacom_wac.c 79.5 KB