c4bb3d11fc
Libinput is an optional dependency for getting low level input events. As opening the input devices requires root privs this is rather pointless in the current state. But there is a small added test app which can be executed with root privs to demonstrate the functionality. To properly get input events we need a wrapper like it's used in weston. So far the following is setup: * opening devices found by udev * forwarding keyboard events to InputRedirection * forwarding pointer button events to InputRedirection * forwarding pointer axis events to InputRedirection * signals emitted for pointer motion events Pointer motion events need some further work as they are provided as delta events. We need to track that and map them properly. Also missing are touch events due to me not having a touch screen. It should be fairly simple to setup the touch events, though. Also hotplugging of devices is not yet implemented.
29 lines
843 B
CMake
29 lines
843 B
CMake
# - Try to find the UDev library
|
|
# Once done this will define
|
|
#
|
|
# UDEV_FOUND - system has UDev
|
|
# UDEV_INCLUDE_DIR - the libudev include directory
|
|
# UDEV_LIBS - The libudev libraries
|
|
|
|
# Copyright (c) 2010, Rafael Fernández López, <ereslibre@kde.org>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
find_path(UDEV_INCLUDE_DIR libudev.h)
|
|
find_library(UDEV_LIBS udev)
|
|
|
|
if(UDEV_INCLUDE_DIR AND UDEV_LIBS)
|
|
include(CheckFunctionExists)
|
|
include(CMakePushCheckState)
|
|
cmake_push_check_state()
|
|
set(CMAKE_REQUIRED_LIBRARIES ${UDEV_LIBS} )
|
|
|
|
cmake_pop_check_state()
|
|
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(UDev DEFAULT_MSG UDEV_INCLUDE_DIR UDEV_LIBS)
|
|
|
|
mark_as_advanced(UDEV_INCLUDE_DIR UDEV_LIBS)
|