updated stream deck libs

This commit is contained in:
Zack Hoherchak 2022-12-06 14:11:21 -05:00
commit 742ded5d8e
5 changed files with 31 additions and 11 deletions

View file

@ -46,11 +46,18 @@
</div>
<div class="sdpi-info-label hidden" style="top: -1000" value=""></div>
<script src="../../../libs/js/utils.js"></script>
<!-- Stream Deck Libs -->
<script src="../../../libs/js/constants.js"></script>
<script src="../../../libs/js/event-emitter.js"></script>
<script src="../../../libs/js/stream-deck.js"></script>
<script src="../../../libs/js/prototypes.js"></script>
<script src="../../../libs/js/timers.js"></script>
<script src="../../../libs/js/utils.js"></script>
<script src="../../../libs/js/events.js"></script>
<script src="../../../libs/js/api.js"></script>
<script src="../../../libs/js/property-inspector.js"></script>
<script src="../../../libs/js/dynamic-styles.js"></script>
<!-- Property Inspector Source -->
<script src="inspector.js"></script>
</body>
</html>

View file

@ -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);
})
);
});

View file

@ -12,10 +12,17 @@
</head>
<body>
<!-- Stream Deck Libs -->
<script src="libs/js/constants.js"></script>
<script src="libs/js/event-emitter.js"></script>
<script src="libs/js/prototypes.js"></script>
<script src="libs/js/timers.js"></script>
<script src="libs/js/utils.js"></script>
<script src="libs/js/events.js"></script>
<script src="libs/js/api.js"></script>
<script src="libs/js/stream-deck.js"></script>
<script src="libs/js/action.js"></script>
<!-- Plugin Source -->
<script src="app.js"></script>
</body>

View file

@ -1,13 +1,19 @@
/// <reference path="libs/js/action.js" />
/// <reference path="libs/js/stream-deck.js" />
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);
})

@ -1 +1 @@
Subproject commit 961b8a70e1c637fbacab40210faedaef944177db
Subproject commit b1bb3723180b43240e752816285852920a93c14a