moved didRecieveGlobalSettings to stream deck
This commit is contained in:
parent
3174409e20
commit
90bfebe43d
2 changed files with 9 additions and 9 deletions
|
|
@ -21,15 +21,6 @@ class ELGSDAction {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a callback function for the didReceiveGlobalSettings event, which fires when calling getGlobalSettings
|
||||
* @param {function} fn
|
||||
*/
|
||||
onDidReceiveGlobalSettings(fn) {
|
||||
this.#on(Events.didReceiveGlobalSettings, (jsn) => fn(jsn));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a callback function for the keyDown event, which fires when pressing a key down
|
||||
* @param {function} fn
|
||||
|
|
|
|||
|
|
@ -383,6 +383,15 @@ class ELGSDStreamDeck {
|
|||
this.#on(Events.systemDidWakeUp, (jsn) => fn(jsn));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registers a callback function for the didReceiveGlobalSettings event, which fires when calling getGlobalSettings
|
||||
* @param {function} fn
|
||||
*/
|
||||
onDidReceiveGlobalSettings(fn) {
|
||||
this.#on(Events.didReceiveGlobalSettings, (jsn) => fn(jsn));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
const $SD = new ELGSDStreamDeck();
|
||||
|
|
|
|||
Loading…
Reference in a new issue