compose-multiplatform
compose-multiplatform copied to clipboard
How to force pointer movement to a given x, y coordinates?
Could you elaborate please? What are you trying to achieve and on what platform?
Do you want to move the cursor with Compose for Desktop from code?
@eymar Exactly. I want to move the mouse cursor with Compose for Desktop from the code. The Android module will send the coordinates to the Desktop application and move the cursor.
@jeancsanchez This is outside of the scope of Compose, but you can try using the AWT Robot API: https://docs.oracle.com/javase/7/docs/api/java/awt/Robot.html