Commit graph

16 commits

Author SHA1 Message Date
David Redondo
b7763fc888 mousepad: Support setting the cursor to absolute positions 2024-07-02 10:23:43 +02:00
Alexander Lohnau
2e67f95017 Add explicit moc includes to cpp files
The rationale is explained in https://planet.kde.org/friedrich-kossebau-2023-06-28-include-also-moc-files-of-headers/

In case of KDEConnect, it impressively speeds up compilation. Before it
took 390 seconds on a clean build and with this change it took 330 seconds.
This is due to the mocs_compilation having to include the header files
and thus all their headers. Due to the lots of small plugins we have,
this means that the same headers must be compiled plenty of times.
When we include the moc files directly in the C++ file, they are already
available.
2023-07-30 07:27:45 +00:00
Nicolas Fella
a918ffc0cb Add and make use of ECM's clang-format integration 2022-09-11 23:21:58 +00:00
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
Piyush Aggarwal
a7a58cc8c6 Revert "plugins/mousepad: wait for a microsecond to allow interpolation"
This reverts the microsec delay as it introduces a lot of aggregated delay in mouse movement.
2021-08-09 03:06:56 +05:30
Piyush Aggarwal
2c0c822600 windowsremoteinput: add missing isSingleRelease to condition 2021-06-29 07:02:33 +05:30
Piyush Aggarwal
92237d416e plugins/mousepad: wait for a microsecond to allow interpolation 2021-06-02 01:11:19 +05:30
Piyush Aggarwal
c00ea12007 plugins/mousepad: fix remote mouse movement by replacing Qt API with win32 API 2021-06-02 00:11:16 +05:30
Nicolas Fella
87db95b22f Convert license headers to SPDX expressions 2020-08-17 09:48:10 +00:00
Yuri Chornoivan
01c4d0411b Fix minor EBN issues 2019-12-22 09:49:55 +02:00
Piyush Aggarwal
5b13f28912 re-add support for keyboard in Windows build 2019-08-18 19:58:02 +00:00
Nicolas Fella
3b8fedea1a Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
Albert Vaca
a70c9aad64 Fix Windows build which I just broke 2018-11-07 17:13:18 +01:00
Bertrand Lacost
a685a4910e Add detection of the Meta/Super key press
Differential Revision: https://phabricator.kde.org/D10379
2018-11-07 16:05:21 +01:00
Jun Bo Bi
467ac64be7 [remoteinput] Added keyboard support for windows
Summary:
Added keyboard input support for Windows
Completes T6269

Test Plan:
  - Open Remote input
  - Type something in

Reviewers: #kde_connect, albertvaka

Reviewed By: #kde_connect, albertvaka

Subscribers: albertvaka, kdeconnect, #kde_connect

Tags: #kde_connect, #windows

Differential Revision: https://phabricator.kde.org/D16501
2018-10-30 11:31:58 +01:00
Albert Vaca
f1f19eb01b Split platform-specific code from mousepad plugin
Summary:
Windows no longer needs a separate plugin, and X11 and Wayland are now in
separate files instead of having lots of ifdefs.

Test Plan: Tested on X11, Wayland and Windows.

Reviewers: #kde_connect, apol, nicolasfella

Reviewed By: #kde_connect, apol, nicolasfella

Subscribers: apol, nicolasfella

Tags: #kde_connect

Differential Revision: https://phabricator.kde.org/D11692
2018-04-04 22:38:16 +02:00
Renamed from plugins/mousepad_windows/mousepadplugin_windows.cpp (Browse further)