a045278822
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. |
||
---|---|---|
.. | ||
abstractremoteinput.cpp | ||
abstractremoteinput.h | ||
CMakeLists.txt | ||
config-mousepad.h.cmake | ||
kdeconnect_mousepad.json | ||
macosremoteinput.h | ||
macosremoteinput.mm | ||
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