48108cd316
Summary: When running the test m_impl will be nullptr leading to a crash. This is because when running as a test no platform is loaded. The fancy way to solve this would be to have a TestImpl, but I think this is enough. Test Plan: Test passes now Reviewers: #kde_connect, apol Reviewed By: #kde_connect, apol Subscribers: kdeconnect, #kde_connect Tags: #kde_connect Differential Revision: https://phabricator.kde.org/D13629 |
||
---|---|---|
.. | ||
abstractremoteinput.cpp | ||
abstractremoteinput.h | ||
CMakeLists.txt | ||
config-mousepad.h.cmake | ||
kdeconnect_mousepad.json | ||
mousepadplugin.cpp | ||
mousepadplugin.h | ||
README | ||
waylandremoteinput.cpp | ||
waylandremoteinput.h | ||
windowsremoteinput.cpp | ||
windowsremoteinput.h | ||
x11remoteinput.cpp | ||
x11remoteinput.h |
When the user moves his on the phone, dx and dy (The difference between the last movement and the current movement of the X and Y Axis respectively) is sent inside a NetworkPackage QCursor is used to move mouse cursor according to its relative position. When the user tap or double taps his phone, a mouse key button is simulated using XTestFakeButtonEvent