You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Following are the future plans for the project:
37
37
, [How to solve missing javah in Java 10 – ugly way](https://www.owsiak.org/how-to-solve-missing-javah-ugly-way)
38
38
-[X] Implement way to cross compile the C/C++ library from any OS to any OS and then package it up in the resulting
39
39
Jar. Done with PR [#4](https://github.com/Animeshz/keyboard-mouse-kt/pull/4).
40
-
-[X](Complete for Windows x64 and Linux x64 currently) Implement JNI each for different platforms. I've considered it to do via C++ instead of reusing Kotlin/Native because
40
+
-[X] Implement JNI each for different platforms. I've considered it to do via C++ instead of reusing Kotlin/Native because
41
41
it will result in low performance and maybe huge sizes (if K/N becomes stable and performance wise equivalent we can
42
42
directly reuse the sources we've written).
43
43
- Add Linux Device (`/dev/uinput` | `/dev/input/xxx`) based implementation of interaction of Keyboard/Mouse as a
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ know more!
40
40
-[X] Windows x86_64 (64 bit)
41
41
-[X] Windows x86 (32 bit)
42
42
-[X] Linux x86_64 (64 bit)
43
-
-[] Linux x86 (32 bit)
43
+
-[X] Linux x86 (32 bit)
44
44
-[ ] Linux Arm32
45
45
-[ ] Linux Arm64
46
46
-[ ] Mouse
@@ -151,6 +151,8 @@ High Level API depends on [Keyboard][4] which is a wrapper around the [NativeKey
151
151
keyboard.play(records, speedFactor =1.25)
152
152
```
153
153
154
+
__Note: The `Keyboard.dispose()` must be called in order to avoid memory leaks (when process is alive, but the Keyboard instance is no longer referenced).__
155
+
154
156
## Contributing and future plans
155
157
156
158
The Github dicussions are open! Be sure to show your existence, say hi! and share if you have any upcoming ideas :)
@@ -145,10 +144,10 @@ fun KotlinMultiplatformExtension.configureJvm() {
145
144
val path =if (Os.isFamily(Os.FAMILY_WINDOWS)) "/run/desktop/mnt/host/${tmpVar[0].toLowerCase()}${tmpVar.substring(2 until tmpVar.length).replace('\\', '/')}"
146
145
else tmpVar
147
146
148
-
val work: () ->String= {
147
+
val work: () ->Pair<Int, String>= {
149
148
ByteArrayOutputStream().use {
150
149
project.exec {
151
-
val args = arrayOf(
150
+
commandLine(
152
151
"docker",
153
152
"run",
154
153
"--rm",
@@ -165,30 +164,29 @@ fun KotlinMultiplatformExtension.configureJvm() {
0 commit comments