Swinput can fake a mouse and a keyboard by using the Linux Input System. The swinput modules read from a device and fakes hardware event (mouse motion, key presses etc) as commands written on the devices. Swinput presents status etc on the proc filesystem.
Swinput is useful when testing applications.
It was developed to use when testing Xnee (http://www.gnu.org/software/xnee).
These details are provided for information only. No information here is legal advice and should not be used as such.