That's a lot more difficult than you might think. In fact, I don't remember the last time I played a game that was on both console and PC that used a single interface between the two that actually worked well for both a gamepad and keyboard & mouse. It's part of the reason I prefer using a gamepad for non-exclusive pc games; they're almost all designed with a gamepad in mind these days.