-
Notifications
You must be signed in to change notification settings - Fork 26
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 Pikatea GB4 #27
base: main
Are you sure you want to change the base?
Conversation
@@ -211,6 +218,11 @@ class StreamDeck { // eslint-disable-line | |||
device.productId === 0x0080) { | |||
return device; | |||
} | |||
} else if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the WET-ness of this function stood out to me before (getPreviousDevice
repeating a bunch from getDevice
).. and this new branch exacerbates it a bit..
so I tried to DRY it up.. but tbh I don't love the result: paulirish/StreamDeck-Meet@macropad...dry-er-filters
I'm pretty confident the match-any-filter impl I have matches up completely with the spec, so it does seem very future-friendly. But it isn't nice to look at.
Your call. I could totally go either way.
The Pikatea GB4 is this badboy:
I got one of these primarily to control meet, and integrating it into this ext was pretty straightforward. (Though there are zero HID docs for the device... but once I explored it a bit I feel happy with the implementation choices below)
Lemme know what ya think.