Last active
June 19, 2022 17:39
-
-
Save Wollw/f176b7d399580ff9c8eed2a7a16855f2 to your computer and use it in GitHub Desktop.
Diff to add support to xone for the 8BitDo Ultimate Wired Controller for XBox's Share button.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17a18,21 | |
> /* vendor/product ID for 8BitDo Ultimate Wired Xbox */ | |
> #define GIP_GP_VID_8BITDO 0x2dc8 | |
> #define GIP_GP_PID_8BITDO_ULTIMATE_WIRED_XBOX 0x2002 | |
> | |
258c262,268 | |
< input_report_key(dev, KEY_RECORD, !!pkt_xs->share_button); | |
--- | |
> u8 share_button; | |
> if (client->hardware.vendor == GIP_GP_VID_8BITDO && | |
> client->hardware.product == GIP_GP_PID_8BITDO_ULTIMATE_WIRED_XBOX) | |
> share_button = pkt_xs->unknown[0]; | |
> else | |
> share_button = pkt_xs->share_button; | |
> input_report_key(dev, KEY_RECORD, !!share_button); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment