I'm a little late commenting, but I developed a Windows app [1] that does exactly this for the mouse. It basically applies some fancy FIR filters to the x and y deltas.
[1] www.steadymouse.com
Have you thought about open-sourcing your implementation to encourage others to take a jab at it and port it to other platforms?