How to control mouse movement in linux?
问题 I try to control the mouse in Linux. Xlib seems to works, but when I try to use it with OpenCV, it keeps returning: Resource temporarily unavailable So I decide to write "/dev/psaux". The code is as following: #include <unistd.h> #include <string.h> #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main() { unsigned char a[5]={0, 0xff, 0, 0x28, 0xff}; int fp = open ("/dev/psaux", O_WRONLY); if(!fp)printf("open error:%s\n", strerror(errno