Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameInput Not Working With USB XBox Controller #32

Open
r2d2Proton opened this issue Dec 17, 2022 · 1 comment
Open

GameInput Not Working With USB XBox Controller #32

r2d2Proton opened this issue Dec 17, 2022 · 1 comment

Comments

@r2d2Proton
Copy link

r2d2Proton commented Dec 17, 2022

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

@DJm00n
Copy link

DJm00n commented Sep 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants