GDK icon indicating copy to clipboard operation
GDK copied to clipboard

GameInput Not Working With USB XBox Controller

Open r2d2Proton opened this issue 3 years ago • 1 comments

Does GameInput support the USB Xbox(360) controller? The controllers work fine with XInput, which I am going try and use sxs in code. Also, XGameRuntimeInitialize returns (0x87e5001f), which apparently is not considered failed FAILED(hr). By chance, can you point me to a sample in the Windows-Driver-Samples so that I can use as a baseline to create my own for the controllers?

XGameRuntimeInitializeFails

r2d2Proton avatar Dec 17 '22 15:12 r2d2Proton

By chance, can you point me to a sample in the Windows-Driver-Samples so that I can use as a baseline to create my own for the controllers?

There is no any public official way to add your own XInput compatible controller. But you can create a generic HID gamepad (see vhidmini2 example etc).

Reverse engineered driver exist that can emulate XInput compatible controller programmatically: https://github.com/nefarius/ViGEmBus For example, famous DS4Windows tool is using it under the hood to emulate XInput controller

DJm00n avatar Sep 20 '23 11:09 DJm00n