Skip to content

Instantly share code, notes, and snippets.

@Wollw
Last active June 19, 2022 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wollw/f176b7d399580ff9c8eed2a7a16855f2 to your computer and use it in GitHub Desktop.
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.
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