4d7134f6c7
Summary: The Device class wraps all the information we can get from libinput about the device, like whether it's a keyboard, pointer, touch, etc. In addition some more information is queried to figure out how "useful" a device is. For a keyboard all alphanumeric keys are checked whether they exist, for a pointer all (normal) buttons are queried. All the information is exposed as Q_PROPERTY and used by the DebugConsole. The DebugConsole gained a new tab "Input Devices" which renders all devices and their properties in a tree view. When plugging in/out a device, the model gets reset, so it's always up to date. The new Device class can be used in future to configure the device, e.g. disable touch pad, set mouse acceleration, etc. Reviewers: #plasma Subscribers: plasma-devel Projects: #plasma Differential Revision: https://phabricator.kde.org/D1538
34 lines
1.4 KiB
CMake
34 lines
1.4 KiB
CMake
if (XCB_ICCCM_FOUND)
|
|
set(normalhintsbasesizetest_SRCS normalhintsbasesizetest.cpp)
|
|
add_executable(normalhintsbasesizetest ${normalhintsbasesizetest_SRCS})
|
|
target_link_libraries(normalhintsbasesizetest XCB::XCB XCB::ICCCM KF5::WindowSystem)
|
|
endif()
|
|
|
|
# next target
|
|
set(screenedgeshowtest_SRCS screenedgeshowtest.cpp)
|
|
add_executable(screenedgeshowtest ${screenedgeshowtest_SRCS})
|
|
target_link_libraries(screenedgeshowtest Qt5::Widgets Qt5::X11Extras KF5::ConfigCore KF5::WindowSystem ${XCB_XCB_LIBRARY})
|
|
|
|
if (KF5Wayland_FOUND)
|
|
add_definitions(-DSOURCE_DIR="${KWIN_SOURCE_DIR}")
|
|
set(waylandclienttest_SRCS
|
|
waylandclienttest.cpp
|
|
)
|
|
add_executable(waylandclienttest ${waylandclienttest_SRCS})
|
|
target_link_libraries(waylandclienttest Qt5::Core Qt5::Gui KF5::WaylandClient)
|
|
endif()
|
|
|
|
if (HAVE_INPUT)
|
|
set(libinputtest_SRCS
|
|
libinputtest.cpp
|
|
${KWIN_SOURCE_DIR}/libinput/context.cpp
|
|
${KWIN_SOURCE_DIR}/libinput/connection.cpp
|
|
${KWIN_SOURCE_DIR}/libinput/device.cpp
|
|
${KWIN_SOURCE_DIR}/libinput/events.cpp
|
|
${KWIN_SOURCE_DIR}/libinput/libinput_logging.cpp
|
|
${KWIN_SOURCE_DIR}/logind.cpp
|
|
${KWIN_SOURCE_DIR}/udev.cpp
|
|
)
|
|
add_executable(libinputtest ${libinputtest_SRCS})
|
|
target_link_libraries(libinputtest Qt5::Core Qt5::DBus Libinput::Libinput ${UDEV_LIBS} KF5::WindowSystem)
|
|
endif()
|