kdeconnect-kde/plugins/mousepad
Weixuan Xiao a045278822 Fix and improve unicode input on macOS and Windows
Unicode text input from remote devices gives random texts because the plugin mistook the text encoding. Insert a Unicode 16 bits character each time instead of a UTF-8 character.

The API accepts the `UniChar` Unicode characters:

```c
void CGEventKeyboardSetUnicodeString(CGEventRef event, UniCharCount stringLength, const UniChar *unicodeString);
```

from https://developer.apple.com/documentation/coregraphics/1456028-cgeventkeyboardsetunicodestring.
2022-04-28 12:40:53 +00:00
..
abstractremoteinput.cpp Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
abstractremoteinput.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
CMakeLists.txt Clean up unneeded JSON parameter in kcoreaddons_add_plugin 2021-06-28 20:33:52 +02:00
config-mousepad.h.cmake Just keep CMakeLists as it was 2019-07-21 22:49:07 +00:00
kdeconnect_mousepad.json SVN_SILENT made messages (.desktop file) - always resolve ours 2021-11-04 01:16:42 +00:00
macosremoteinput.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
macosremoteinput.mm Fix and improve unicode input on macOS and Windows 2022-04-28 12:40:53 +00:00
mousepadplugin.cpp Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
mousepadplugin.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
README Implementation of mousepad plugin 2014-06-27 15:43:34 +02:00
waylandremoteinput.cpp wayland/x11 remoteinput.cpp: add missing conditional check for isSingleRelease 2021-07-01 11:08:43 +05:30
waylandremoteinput.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
windowsremoteinput.cpp Fix and improve unicode input on macOS and Windows 2022-04-28 12:40:53 +00:00
windowsremoteinput.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
x11remoteinput.cpp wayland/x11 remoteinput.cpp: add missing conditional check for isSingleRelease 2021-07-01 11:08:43 +05:30
x11remoteinput.h Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00: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