Controlling Linux Using an Android Phone As Mouse, Keyboard, and Gamepad
beefsack writes "Miniand have demonstrated how to control Linux using a Samsung Galaxy S2. Using an MK802 with the ARM build of Droidmote server bundled into an MK802 Lubuntu image with uinput enabled, Miniand demonstrates (video) using an Android phone as a keyboard, mouse, and gamepad over Wi-Fi to the device."
Update: 07/10 00:07 GMT by U L : reader ancienthart pointed toward Premotedroid, an (possibly, I could find no license in the code but the code is there) open source alternative.
Premotedroid does this for (android) mouse and keyboard already. It's open source, works using bluetooth or wifi, and on any computer with java.