Output as USB Joystick help.

I made some headway, but I cant get the PS3 to recognize the commands. Any tips?