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

A function to add global handlers to the client (e.g. for didReceiveGlobalSettings event) #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

StefanZoerner
Copy link

For the getGlobalSettings function of Stream Deck it seems to be necessary to use a handler which is not specific to an action. But for the plugin as a whole.

The Client type already has a data structure (handlers) for general handlers (file client.go). And the handlers are called (if any). I have added a function to add a "global" handler. Without I was not able to work with didReceiveGlobalSettings events in my plugin.

I have added a go.mod file for the Go module system as well.

Thanks for your work, Sam

@FlowingSPDG
Copy link

Hello, I am also curious this
however I made new fork with some additions(includes this) so you could use it until Sam merges this PR: https://github.com/FlowingSPDG/streamdeck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants