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

Added support for Stream Deck Mini V2 #3378

Merged
merged 3 commits into from
Feb 16, 2023
Merged
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
7 changes: 7 additions & 0 deletions extensions/streamdeck/HSStreamDeckManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ - (id)init {
productIDKey: @USB_PID_STREAMDECK_ORIGINAL_V2};
NSDictionary *matchMini = @{vendorIDKey: @USB_VID_ELGATO,
productIDKey: @USB_PID_STREAMDECK_MINI};
NSDictionary *matchMiniV2 = @{vendorIDKey: @USB_VID_ELGATO,
productIDKey: @USB_PID_STREAMDECK_MINI_V2};
NSDictionary *matchXL = @{vendorIDKey: @USB_VID_ELGATO,
productIDKey: @USB_PID_STREAMDECK_XL};
NSDictionary *matchMk2 = @{vendorIDKey: @USB_VID_ELGATO,
Expand All @@ -82,6 +84,7 @@ - (id)init {
(__bridge CFArrayRef)@[matchOriginal,
matchOriginalv2,
matchMini,
matchMiniV2,
matchXL,
matchMk2]);

Expand Down Expand Up @@ -169,6 +172,10 @@ - (HSStreamDeckDevice*)deviceDidConnect:(IOHIDDeviceRef)device {
case USB_PID_STREAMDECK_MINI:
deck = [[HSStreamDeckDeviceMini alloc] initWithDevice:device manager:self];
break;

case USB_PID_STREAMDECK_MINI_V2:
deck = [[HSStreamDeckDeviceMini alloc] initWithDevice:device manager:self];
break;

case USB_PID_STREAMDECK_XL:
deck = [[HSStreamDeckDeviceXL alloc] initWithDevice:device manager:self];
Expand Down
1 change: 1 addition & 0 deletions extensions/streamdeck/streamdeck.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ static const char *USERDATA_TAG = "hs.streamdeck";
#define USB_PID_STREAMDECK_ORIGINAL 0x0060
#define USB_PID_STREAMDECK_ORIGINAL_V2 0x006d
#define USB_PID_STREAMDECK_MINI 0x0063
#define USB_PID_STREAMDECK_MINI_V2 0x0090
#define USB_PID_STREAMDECK_XL 0x006c
#define USB_PID_STREAMDECK_MK2 0x0080

Expand Down