The Microsoft Game Development Kit (GDK) ships with the header file XInputOnGameInput.h, which contains an implementation of the XInput API on top of GameInput. We recommend porting directly to GameInput, especially if a keyboard and mouse or other input devices are desired. However, the XInputOnGameInput wrapper can be used to help bootstrap an initial porting effort without requiring any changes to existing XInput code.