I released the source code.
See http://code.google.com/p/diyps3controller/
It works great with COD MW2.
Farcry 2 code is deactivated with preprocessor conditions.
I probably will not work anymore on this ps/2 keyboard and mouse controller version, as I am planning to build a usb wireless keyboard and mouse controller…