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

Successfully sending out the extra buttons #268

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3565e20
xpad: print received packets if DEBUG_VERBOSE
dantob May 9, 2016
e0f001b
add code to enable debug outputs
paroj Jul 5, 2015
75e79d8
add README.md
paroj Jun 24, 2015
876f439
add stress_urb_out.sh
paroj Sep 27, 2015
78d2f92
add PR template
paroj Dec 8, 2019
6fd35f2
add CI build
paroj Sep 5, 2022
61b4e97
Input: xpad - initialize 360 controllers
Oblomov Aug 14, 2021
1b1391a
Input: xpad - refactor using BIT() macro
paroj Sep 8, 2022
2c087f9
Input: xpad - decipher xpadone packages with GIP defines
paroj Sep 9, 2022
5d67940
input: xpad - Switch to workqueue for xpad360w button poweroff
DD3Boh Oct 22, 2022
0270e37
Input: xpad - add support for GHL Xbox One controller
dynamix1337 Oct 22, 2022
dbe7e09
xbox 360: fix null pointer dereference when manufacturer is null
eldad Oct 20, 2022
1821d28
Input: xpad - add support for 8BitDo Ultimate Wireless controller dongle
jcotton42 Nov 14, 2022
4a64f5c
Improve name of 8BitDo controller 2dc8:3106
lbschenkel Jan 4, 2023
1bdf092
Added Turtle Beach Recon support (from the diff from https://www.spin…
treus Nov 26, 2022
904be14
Support KEY_RECORD for 8BitDo Pro 2...for Xbox
lbschenkel Jan 9, 2023
51af064
Input: xpad - add support for 8BitDo Ultimate bluetooth/hall effect v…
jdarn Apr 12, 2023
889871e
Input: xpad - add support for wooting two he (arm)
ProjectSynchro Jun 28, 2023
eddb513
Input: xpad - add support for SCUF Instinct
WaferMouse Jul 2, 2023
3a21582
feat: add Black Shark Green Ghost controller support
Nov 22, 2023
6b93b7e
Successfully sending out the extra buttons
ahungry Jan 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support KEY_RECORD for 8BitDo Pro 2...for Xbox
This controller is a "Series S|X": it has the "share" button below the
big Xbox button. However, it reports the status of that button in a
different offset than the official controller.

The button is still recognized by official Microsoft driver in Windows,
so it looks like that both offsets are used in the wild.

Signed-off-by: Leonardo Brondani Schenkel <leonardo@schenkel.net>
  • Loading branch information
lbschenkel authored and paroj committed Feb 8, 2023
commit 904be143d75818e672a8f4fa346ebf5362332bac
4 changes: 2 additions & 2 deletions xpad.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static const struct xpad_device {
{ 0x24c6, 0x5d04, "Razer Sabertooth", 0, XTYPE_XBOX360 },
{ 0x24c6, 0xfafe, "Rock Candy Gamepad for Xbox 360", 0, XTYPE_XBOX360 },
{ 0x2563, 0x058d, "OneXPlayer Gamepad", 0, XTYPE_XBOX360 },
{ 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller fox Xbox", 0, XTYPE_XBOXONE },
{ 0x2dc8, 0x2000, "8BitDo Pro 2 Wired Controller for Xbox", MAP_SELECT_BUTTON, XTYPE_XBOXONE },
{ 0x2dc8, 0x3106, "8BitDo Ultimate Wireless / Pro 2 Wired Controller", 0, XTYPE_XBOX360 },
{ 0x31e3, 0x1100, "Wooting One", 0, XTYPE_XBOX360 },
{ 0x31e3, 0x1200, "Wooting Two", 0, XTYPE_XBOX360 },
Expand Down Expand Up @@ -1104,7 +1104,7 @@ static void xpadone_process_packet(struct usb_xpad *xpad, u16 cmd, unsigned char
input_report_key(dev, BTN_START, data[4] & BIT(2));
input_report_key(dev, BTN_SELECT, data[4] & BIT(3));
if (xpad->mapping & MAP_SELECT_BUTTON)
input_report_key(dev, KEY_RECORD, data[22] & BIT(0));
input_report_key(dev, KEY_RECORD, data[22] & BIT(0) || /* 8BitDo: */ data[18] & BIT(0));

/* buttons A,B,X,Y */
input_report_key(dev, BTN_A, data[4] & BIT(4));
Expand Down