For educational purposes, I decided to write a python script with cwiidand Xlibso that I can use my wiimote as a mouse.
So far I have a cursor to move, calling disp.warp_pointer(dx,dy), and then calling disp.sync()every given time interval. I am afraid that this may not be the most efficient way to do this, but at least for now it is simple and works quite well.
The problem I am facing is mouse clicks. How to simulate a mouse click in Xlib? I would like to separate events for the press and release so that I can drag things. I came across this , but all the solutions there seem to use other libraries.
source
share