moved didRecieveGlobalSettings to stream deck

This commit is contained in:
Zack Hoherchak 2022-03-09 11:16:14 -05:00
commit 90bfebe43d
2 changed files with 9 additions and 9 deletions

View file

@ -21,15 +21,6 @@ class ELGSDAction {
return this; 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 * Registers a callback function for the keyDown event, which fires when pressing a key down
* @param {function} fn * @param {function} fn

View file

@ -383,6 +383,15 @@ class ELGSDStreamDeck {
this.#on(Events.systemDidWakeUp, (jsn) => fn(jsn)); this.#on(Events.systemDidWakeUp, (jsn) => fn(jsn));
return this; 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(); const $SD = new ELGSDStreamDeck();