atar-axis / xpadneo

Advanced Linux Driver for Xbox One Wireless Controller (shipped with Xbox One S)
https://atar-axis.github.io/xpadneo/
GNU General Public License v3.0
1.92k stars 111 forks source link

Normal use of XBOX button. #305

Closed jao12345 closed 3 years ago

jao12345 commented 3 years ago

Hello

Can you add some switch/parameter to the driver, that I could use (retropie) XBOX button as normal button please. I would like to have conditional this part of code:

else if ((usage->type == EV_KEY) && (usage->code == BTN_XBOX)) { ... } } else if (xdata->xbox_button_down && (usage->type == EV_KEY)) { }

Thank you,.

kakra commented 3 years ago

This PR is invalid, I'm not sure what it's going to accomplish. The Xbox button is used as a mode switch button in the current driver to switch between different modes, it cannot be handled differently due to this. This may change in the future but currently, the planned code is not finalized yet.

Also, the Xbox button is not a gaming button. How does Retropie need it that it needs to be handled differently? You maybe need #283 instead?