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

Add support for the XBox Elite Series 2 pad #116

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/hid/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ MTY_CType hid_driver(struct hid_dev *device)
case 0x045E02FD: // Microsoft X-Box One S pad (Bluetooth)
case 0x045E0B05: // Microsoft X-Box One Elite Series 2 pad (Bluetooth)
case 0x045E0B13: // Microsoft X-Box Series X (Bluetooth)
case 0x045E0B22: // Microsoft X-Box Elite Series 2 pad (Bluetooth)
return MTY_CTYPE_XBOX;

// Xbox Wired
Expand Down
3 changes: 2 additions & 1 deletion src/hid/xbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ static void xbox_do_rumble(struct hid_dev *device)
static void xbox_init(struct hid_dev *device)
{
struct xbox_state *ctx = mty_hid_device_get_state(device);
ctx->series_x = mty_hid_device_get_pid(device) == 0x0B13;
uint16_t device_pid = mty_hid_device_get_pid(device);
ctx->series_x = device_pid == 0x0B13 || device_pid == 0x0B22;
ctx->rumble = true;
}

Expand Down