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

Enable Home & Screenshot buttons in USB Gamepad #983

Open
benwa opened this issue Jun 17, 2024 · 6 comments
Open

Enable Home & Screenshot buttons in USB Gamepad #983

benwa opened this issue Jun 17, 2024 · 6 comments

Comments

@benwa
Copy link

benwa commented Jun 17, 2024

I see that you have the Home and Screenshot buttons disabled for USB Gamepad mode. Is there any reason as to why it can't be enabled?

//rpt->btn13 = jc_pad->cap;
//rpt->btn14 = jc_pad->home;

@CTCaer
Copy link
Owner

CTCaer commented Jun 18, 2024

This was done to limit the buttons at the standard number like all gamepads and also save 1 byte on the hid report.
Normally anything that supports dinput automatically maps these properly. For the rest, x360ce exists.

If there's popular demand, it can be changed. But only then, since I will have to re-read the usb hid spec and change the usb hid report descriptors.

@benwa
Copy link
Author

benwa commented Jun 18, 2024

At least with Steam, those two buttons did not automatically map, so I can't natively bring up the menu.

Any chance to have it as an optional feature?

@CTCaer
Copy link
Owner

CTCaer commented Jun 18, 2024

You can't map them in host because they are not even reported, because of the reasons I said.

@benwa
Copy link
Author

benwa commented Jun 18, 2024 via email

@CTCaer
Copy link
Owner

CTCaer commented Jun 18, 2024

The dinput comment means that normally software maps all these 8 buttons automatically.
Not the ones (cap/home) that are not reported and so they don't know that even exist.

@benwa
Copy link
Author

benwa commented Jun 18, 2024

Ah, gotcha. I'll check a few Discord servers to see if anyone is using the feature and is interested in this.

Thank you for the great work!

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