updated libs and readme
This commit is contained in:
parent
742ded5d8e
commit
3411f3f9a2
5 changed files with 46 additions and 20 deletions
|
|
@ -1,8 +1,8 @@
|
|||
/// <reference path="../../../libs/js/stream-deck.js" />
|
||||
/// <reference path="../../../libs/js/property-inspector.js" />
|
||||
/// <reference path="../../../libs/js/utils.js" />
|
||||
|
||||
$SD.onConnected((jsn) => {
|
||||
$SD.loadLocalization('../../../');
|
||||
$PI.onConnected((jsn) => {
|
||||
$PI.loadLocalization('../../../');
|
||||
|
||||
const form = document.querySelector('#property-inspector');
|
||||
const { actionInfo, appInfo, connection, messageType, port, uuid } = jsn;
|
||||
|
|
@ -15,8 +15,7 @@ $SD.onConnected((jsn) => {
|
|||
'input',
|
||||
Utils.debounce(150, () => {
|
||||
const value = Utils.getFormValue(form);
|
||||
$SD.sendToPlugin(null, value);
|
||||
$SD.setSettings(null, value);
|
||||
$PI.setSettings(value);
|
||||
})
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@ const myAction = new Action('com.elgato.template.action');
|
|||
* The first event fired when Stream Deck starts
|
||||
*/
|
||||
$SD.onConnected(({ actionInfo, appInfo, connection, messageType, port, uuid }) => {
|
||||
console.log('Stream Deck connected!')
|
||||
console.log('Stream Deck connected!');
|
||||
});
|
||||
|
||||
myAction.onKeyUp(({ action, context, device, event, payload }) => {
|
||||
console.log('Your code goes here!');
|
||||
console.log('Your key code goes here!');
|
||||
});
|
||||
|
||||
myAction.onSendToPlugin(jsn=>{
|
||||
console.log(jsn);
|
||||
})
|
||||
myAction.onDialRotate(({ action, context, device, event, payload }) => {
|
||||
console.log('Your dial code goes here!');
|
||||
});
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit b1bb3723180b43240e752816285852920a93c14a
|
||||
Subproject commit f15f247682e9acb58449807a2949385cd4569eb6
|
||||
|
|
@ -26,6 +26,16 @@
|
|||
{
|
||||
"Icon": "actions/template/assets/actionimage",
|
||||
"Name": "Example Action",
|
||||
"Controllers": ["Keypad", "Encoder"],
|
||||
"Encoder": {
|
||||
"layout": "$B1",
|
||||
"TriggerDescription": {
|
||||
"Rotate": "Describe the rotation",
|
||||
"Push": "Describe the encoder push",
|
||||
"Touch": "Describe the touch",
|
||||
"LongTouch": "Describe the long touch"
|
||||
}
|
||||
},
|
||||
"States": [
|
||||
{
|
||||
"Image": "actions/template/assets/action"
|
||||
|
|
|
|||
Loading…
Reference in a new issue