views:

210

answers:

3

I'm currently in the process of making my Nintendo Wiimote (Kinda sad actually) to work with my computer as a mouse. I've managed to make the nunchuk's stick control actually move the mouse up and down, left and right on the screen! This was so exciting. Now I'm stuck.

I want to left/right click on things via python when i click A, When I went to do a search, All it came up with was tkinker?

So my question is, What do I call to make python left/right click on the desktop, and if it's possible, maybe provide a snippet?

Thank you for your help!

NOTE: I guess I forgot to mention that this is for Linux.

A: 

you might find this helpful:

http://www.eventghost.org/

Good luck!

reckoner
and under linux, you can use uinput.
tonfa
A: 

You can try to interface XTE program from the Python script.

0x69
+1  A: 

python-uinput is very easy to use.

http://codegrove.org/projects/python-uinput

Here's an example http://github.com/tuos/python-uinput/blob/master/examples/mouse.py

Epeli