I have been writing a C# app that works fine on Windows. It controls keyboard and mouse, and send keystrokes to the currently open program.
However, I want to port my application to Linux, and therefore I cannot use the MouseKeyboardLibrary.dll I have currently been using is doing very Windows specific things.
Is there a library that makes it easy for me to send keyboard and mouse movements to a program in X11 or Xorg?
I’ve not been able to find anything already-made. But I found a starting point for you: xdotool is a project to control mouse and keyboard from the command line. It’s open source as well, so if you wish, you could implement the same functionality natively(or with a few P/Invokes if required) in C#.