kdeconnect-kde/plugins/mousepad
Nicolas Fella 48108cd316 Fix crashing devicetest
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
2018-07-12 16:14:44 +02:00
..
abstractremoteinput.cpp Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
abstractremoteinput.h Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +02:00
CMakeLists.txt Use OPTIONAL_COMPONENTS to search for KF5Wayland and DocTools 2018-04-12 12:08:03 +02:00
config-mousepad.h.cmake Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
kdeconnect_mousepad.json SVN_SILENT made messages (.desktop file) - always resolve ours 2018-06-21 05:33:36 +02:00
mousepadplugin.cpp Fix crashing devicetest 2018-07-12 16:14:44 +02:00
mousepadplugin.h Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +02:00
README Implementation of mousepad plugin 2014-06-27 15:43:34 +02:00
waylandremoteinput.cpp Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
waylandremoteinput.h Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
windowsremoteinput.cpp Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
windowsremoteinput.h Split platform-specific code from mousepad plugin 2018-04-04 22:38:16 +02:00
x11remoteinput.cpp Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +02:00
x11remoteinput.h Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +02:00

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