Are there any Kotlin/Java libraries similar to <Py...
# compose-desktop
j
Are there any Kotlin/Java libraries similar to Pynput? I've put together a simple shortkey program with a GUI written in Python, but I would like to recreate it with Kotlin and Compose.
m
Monitoring the mouse is part of the Compose API and you don’t need any external libraries for that. I am not so sure about controlling the mouse.
j
Thanks for the reply! I would be more interested in monitoring and controlling the keyboard. But if the Compose API also covers monitoring the keyboard, I'd be interested to know where in the documentation I could find out more about it. From there I could hopefully figure out the rest.
m
Sorry, I can’t help you with the keyboard. I am just using what the text field has to offer there.
Maybe this tutorial, which I just stumbled over, may be helpful: https://github.com/JetBrains/compose-jb/tree/master/tutorials/Keyboard