• Chris Bagwell's avatar
    Input: wacom - fix touch parsing on newer Bamboos · 8f906860
    Chris Bagwell authored
    Bamboos with Product ID's > 0xD4 return values unrelated to pressure
    in touch 1 pressure field.  They also report 2nd touch X/Y values
    shifted down 1 byte (where pressure was).  This results in jumpy
    1 finger touch and totally invalid 2nd finger data.
    
    For touch detection, switch to a Touch Present single bit that
    all versions of Bamboo support.
    
    For touch 2 offset, calculate offset based on a bit that is set
    different between the two packet layouts.
    
    Since touch pressure reports were removed from driver, there was
    no need to be reading pressure any more.
    Signed-off-by: default avatarChris Bagwell <chris@cnpbagwell.com>
    Reviewed-by: default avatarPing Cheng <pinglinux@gmail.com>
    Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
    8f906860
wacom_wac.c 55.7 KB