In Windows 10 this is easy. You import the DLL "User32.dll" and call the SetCursorPos(int x, int y) function, for example.
I was looking for the Linux/Unix/OSX equivalents?
In Windows 10 this is easy. You import the DLL "User32.dll" and call the SetCursorPos(int x, int y) function, for example.
I was looking for the Linux/Unix/OSX equivalents?
There is more than one equivalent to SetCursorPos, depending on whether you are running in a terminal or in the X Window system.
The choice really depends on what you are trying to do. For a simple program, you could run it in a terminal (or terminal window). Warping the pointer is not done often in X, but is well-known enough to make it easy to find discussion on the topic. Programming in X (no matter what toolkit you use), however, is more complicated than programming for a terminal.
Further reading: