diff --git a/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.html b/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.html index 336e966..d5b9bb5 100644 --- a/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.html +++ b/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.html @@ -46,11 +46,18 @@ - + + - - + + + + + + + + diff --git a/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.js b/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.js index 86462a1..76705e3 100644 --- a/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.js +++ b/src/com.elgato.template.sdPlugin/actions/template/property-inspector/inspector.js @@ -15,8 +15,8 @@ $SD.onConnected((jsn) => { 'input', Utils.debounce(150, () => { const value = Utils.getFormValue(form); - $SD.sendToPlugin(context, value); - $SD.setSettings(context, value); + $SD.sendToPlugin(null, value); + $SD.setSettings(null, value); }) ); }); diff --git a/src/com.elgato.template.sdPlugin/app.html b/src/com.elgato.template.sdPlugin/app.html index a8992cc..4c51a9f 100644 --- a/src/com.elgato.template.sdPlugin/app.html +++ b/src/com.elgato.template.sdPlugin/app.html @@ -12,10 +12,17 @@ + - + + + + + + + diff --git a/src/com.elgato.template.sdPlugin/app.js b/src/com.elgato.template.sdPlugin/app.js index 368b07a..2586e8a 100644 --- a/src/com.elgato.template.sdPlugin/app.js +++ b/src/com.elgato.template.sdPlugin/app.js @@ -1,13 +1,19 @@ /// /// +const myAction = new Action('com.elgato.template.action'); + /** * The first event fired when Stream Deck starts */ $SD.onConnected(({ actionInfo, appInfo, connection, messageType, port, uuid }) => { - const myAction = new Action('com.elgato.template.action'); - - myAction.onKeyUp(({ action, context, device, event, payload }) => { - console.log('Your code goes here!'); - }); + console.log('Stream Deck connected!') }); + +myAction.onKeyUp(({ action, context, device, event, payload }) => { + console.log('Your code goes here!'); +}); + +myAction.onSendToPlugin(jsn=>{ + console.log(jsn); +}) \ No newline at end of file diff --git a/src/com.elgato.template.sdPlugin/libs b/src/com.elgato.template.sdPlugin/libs index 961b8a7..b1bb372 160000 --- a/src/com.elgato.template.sdPlugin/libs +++ b/src/com.elgato.template.sdPlugin/libs @@ -1 +1 @@ -Subproject commit 961b8a70e1c637fbacab40210faedaef944177db +Subproject commit b1bb3723180b43240e752816285852920a93c14a