Skip to content

Commit 7715ca9

Browse files
authored
Added support for Xbox Elite Wireless Controller Series 2
Added support for Xbox Elite Wireless Controller Series 2
1 parent 0e9b5ce commit 7715ca9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

backend/src/api/xbox.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ pub const XBOX_ONE_S_LATEST_FW_PRODUCT_ID: u16 = 0x0b20; // 2848
2121
pub const XBOX_WIRELESS_CONTROLLER_USB_PRODUCT_ID: u16 = 0x0b12; // 2834
2222
pub const XBOX_WIRELESS_CONTROLLER_BT_PRODUCT_ID: u16 = 0x0b13; // 2835
2323

24+
// Xbox Elite Wireless Controller Series 2
25+
pub const XBOX_WIRELESS_ELITE_CONTROLLER_USB_PRODUCT_ID: u16 = 0x0b00;
26+
pub const XBOX_WIRELESS_ELITE_CONTROLLER_BT_PRODUCT_ID: u16 = 0x0b05;
27+
pub const XBOX_WIRELESS_ELITE_CONTROLLER_BTLE_PRODUCT_ID: u16 = 0x0b22;
28+
2429
// pub const XBOX_ONE_REPORT_BT_SIZE: usize = 64;
2530

2631
fn get_xbox_controller_name(product_id: u16) -> &'static str {
@@ -30,6 +35,9 @@ fn get_xbox_controller_name(product_id: u16) -> &'static str {
3035
XBOX_ONE_S_LATEST_FW_PRODUCT_ID => "Xbox One S",
3136
XBOX_WIRELESS_CONTROLLER_USB_PRODUCT_ID => "Xbox Series X/S",
3237
XBOX_WIRELESS_CONTROLLER_BT_PRODUCT_ID => "Xbox Series X/S",
38+
XBOX_WIRELESS_ELITE_CONTROLLER_USB_PRODUCT_ID => "Xbox Elite 2",
39+
XBOX_WIRELESS_ELITE_CONTROLLER_BT_PRODUCT_ID => "Xbox Elite 2",
40+
XBOX_WIRELESS_ELITE_CONTROLLER_BTLE_PRODUCT_ID => "Xbox Elite 2",
3341
_ => "Xbox Unknown",
3442
}
3543
}

0 commit comments

Comments
 (0)