How can I modify this code to linux?
I need an alternative to #include<windows.h>
to make this code:
GetCursorPos(&cursor);
x = cursor.x;
y = cursor.y;
Sleep(2000)
SetCursorPos(x, y);
mouse_event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);