Skip to content

Commit

Permalink
Added new Stream Deck XL PID (#3570)
Browse files Browse the repository at this point in the history
- Closes #3553
  • Loading branch information
latenitefilms committed Dec 24, 2023
1 parent 70a1cda commit 56b5835
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion extensions/streamdeck/HSStreamDeckManager.m
Expand Up @@ -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,
Expand All @@ -169,6 +171,7 @@ - (id)init {
matchMini,
matchMiniV2,
matchXL,
matchXLV2,
matchMk2,
matchPlus,
matchPedal]);
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions extensions/streamdeck/streamdeck.h
Expand Up @@ -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
Expand Down

0 comments on commit 56b5835

Please sign in to comment.