kdeconnect-kde/plugins/mousepad
Nicolas Fella 3c4aa590f1 Enable desktop2desktop keyboard input
Summary:
Fixes T6701

The reason it did not work before is that the "Keyboard" did not report itself as available.

Test Plan:
Type in plasmoid on one Desktop, see text on another.
Note that no ack packets are sent, so the text does not appear in the original input text field. I want to await the discussion in D12670 before doing that

Reviewers: apol

Reviewed By: apol

Subscribers: mtijink, kdeconnect

Tags: #kde_connect

Maniphest Tasks: T6701

Differential Revision: https://phabricator.kde.org/D12812
2018-05-12 17:52:07 +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 Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +02:00
mousepadplugin.cpp Enable desktop2desktop keyboard input 2018-05-12 17:52:07 +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