Skip to content
  • Tony Novak's avatar
    input-settings: detect trackball using udev ID_INPUT_TRACKBALL · 8685de96
    Tony Novak authored and Jonas Ådahl's avatar Jonas Ådahl committed
    Previously, trackballs were detected based on the presence of the
    substring "trackball" in the device name. This had the downside of
    missing devices, such as the Kensington Expert Mouse, which don't have
    "trackball" in their names.
    
    Rather than depending on the device name, use the ID_INPUT_TRACKBALL
    property from udev to determine whether or not to treat a device as a
    trackball.
    
    This adds a new function, `is_trackball_device`, to MetaInputEvents, and
    eliminates the `meta_input_device_is_trackball` function.
    
    Fixes: #258
    8685de96