From 56b5835dc1bf7bb430dfea3f1662379cccec0c82 Mon Sep 17 00:00:00 2001 From: Chris Hocking Date: Sun, 24 Dec 2023 22:32:01 +1100 Subject: [PATCH] Added new Stream Deck XL PID (#3570) - Closes #3553 --- extensions/streamdeck/HSStreamDeckManager.m | 9 ++++++++- extensions/streamdeck/streamdeck.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/extensions/streamdeck/HSStreamDeckManager.m b/extensions/streamdeck/HSStreamDeckManager.m index d989fd1f1..ccdb84eb3 100644 --- a/extensions/streamdeck/HSStreamDeckManager.m +++ b/extensions/streamdeck/HSStreamDeckManager.m @@ -156,6 +156,8 @@ - (id)init { productIDKey: @USB_PID_STREAMDECK_MINI_V2}; NSDictionary *matchXL = @{vendorIDKey: @USB_VID_ELGATO, productIDKey: @USB_PID_STREAMDECK_XL}; + NSDictionary *matchXLV2 = @{vendorIDKey: @USB_VID_ELGATO, + productIDKey: @USB_PID_STREAMDECK_XL_V2}; NSDictionary *matchMk2 = @{vendorIDKey: @USB_VID_ELGATO, productIDKey: @USB_PID_STREAMDECK_MK2}; NSDictionary *matchPlus = @{vendorIDKey: @USB_VID_ELGATO, @@ -169,6 +171,7 @@ - (id)init { matchMini, matchMiniV2, matchXL, + matchXLV2, matchMk2, matchPlus, matchPedal]); @@ -265,7 +268,11 @@ - (HSStreamDeckDevice*)deviceDidConnect:(IOHIDDeviceRef)device { case USB_PID_STREAMDECK_XL: deck = [[HSStreamDeckDeviceXL alloc] initWithDevice:device manager:self]; break; - + + case USB_PID_STREAMDECK_XL_V2: + deck = [[HSStreamDeckDeviceXL alloc] initWithDevice:device manager:self]; + break; + case USB_PID_STREAMDECK_ORIGINAL_V2: deck = [[HSStreamDeckDeviceOriginalV2 alloc] initWithDevice:device manager:self]; break; diff --git a/extensions/streamdeck/streamdeck.h b/extensions/streamdeck/streamdeck.h index 58dcbc919..9e78ccba9 100644 --- a/extensions/streamdeck/streamdeck.h +++ b/extensions/streamdeck/streamdeck.h @@ -20,6 +20,7 @@ static const char *USERDATA_TAG = "hs.streamdeck"; #define USB_PID_STREAMDECK_MINI 0x0063 #define USB_PID_STREAMDECK_MINI_V2 0x0090 #define USB_PID_STREAMDECK_XL 0x006c +#define USB_PID_STREAMDECK_XL_V2 0x008F #define USB_PID_STREAMDECK_MK2 0x0080 #define USB_PID_STREAMDECK_PLUS 0x0084 #define USB_PID_STREAMDECK_PEDAL 0x0086