config BR2_PACKAGE_LIBINPUT
	bool "libinput"
	depends on BR2_PACKAGE_HAS_LIBUDEV
	select BR2_PACKAGE_LIBEVDEV
	help
	  libinput is a library to handle input devices in Wayland
	  compositors and to provide a generic X.Org input driver.
	  It provides device detection, device handling, input device
	  event processing and abstraction so minimize the amount of
	  custom input code compositors need to provide the common
	  set of functionality that users expect.

	  http://freedesktop.org/wiki/Software/libinput/

if BR2_PACKAGE_LIBINPUT

config BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS
	bool "install python tools "
	depends on BR2_PACKAGE_PYTHON3
	select BR2_PACKAGE_PYTHON_LIBEVDEV # runtime
	select BR2_PACKAGE_PYTHON_PYUDEV # runtime
	select BR2_PACKAGE_PYTHON_PYYAML # runtime
	help
	  Install python tools:
	  libinput-analyze-per-slot-delta,
	  libinput-analyze-recording,
	  libinput-analyze-touch-down-state,
	  libinput-measure-fuzz,
	  libinput-measure-touchpad-pressure,
	  libinput-measure-touchpad-size,
	  libinput-measure-touchpad-tap,
	  libinput-measure-touch-size,
	  libinput-replay

endif

comment "libinput needs libudev"
	depends on !BR2_PACKAGE_HAS_LIBUDEV
