Skip to content
  • Peter Hutterer's avatar
    tablet: add support for relative x/y motion deltas · 108a191a
    Peter Hutterer authored
    
    
    Instead of an explicit tablet mode that device must be changed into, let the
    caller decide which coordinates are preferred. The tablet mode may be
    application-specific and usually depends on the tool as well.
    
    This patch adds an interface to get a motion delta for the x/y axes in
    pixel-like coordinates. libinput provides some magic to convert the tablet
    data into something that resembles pixels from a mouse motion.
    For unaccelerated relative motion, the caller should use the mm values from
    the tablet and calculate deltas manually.
    
    Signed-off-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
    Acked-by: default avatarJason Gerecke <jason.gerecke@wacom.com>
    108a191a