WiiMoteControl
by rullzer on Dec.04, 2008, under Hardware, Linux, Programming things
I have been playing the idea to control my PC with a WiiMote for some time now. But this week I decided to actually write it.
It is a very simple program using bluez for the bluetooth connection with the WiiMote (which we need, obviously) and XTestFakeKeyEvent. This has as a side effect that it will only work with X running. But that should not be a problem since well. Who would want to control his terminal with a WiiMote?
The very very basics is done. The D-Pad on the WiiMote generates up/down/left/right-keyevents. I just need to find a use full meaning for the other buttons. But maybe a control file in which the user can specify all is a better solution.
Currently it is not published on-line (yet) since I need to clean the code a little.
I am aware some other programs can do what I want but after checking out the sources they just seem to complex. I want it all simple, clean and small..





December 4th, 2008 on 11:32 pm
Have you had a look at cwiid (http://abstrakraft.org/cwiid/), it’s pretty complete.
December 4th, 2008 on 11:46 pm
I checked out that pacakage. However that requires me to use uinput reconfigure udev etc. XTest runs almost everywhere where X is running (if I’m not mistaken). But thanks I’ll dive into the source to see how they fixed some problems.