You're effectively wanting to make an emulator for one of those controllers, to which end you'd need to copy exactly how the controller behaves, which you'd probably need to get a hold of one of the...