removed static event handler

This commit is contained in:
Zack Hoherchak 2022-02-15 15:37:04 -05:00
commit c2bfece006
8 changed files with 79 additions and 75 deletions

View file

@ -1,19 +1,17 @@
/// <reference path="libs/js/action.js" />
/// <reference path="libs/js/deck.js" />
const streamDeck = new StreamDeck();
/// <reference path="libs/js/stream-deck.js" />
/**
* The first event fired when Stream Deck starts
*/
streamDeck.onConnected(({actionInfo, appInfo, connection, messageType, port, uuid}) => {
StreamDeck.onConnected(({actionInfo, appInfo, connection, messageType, port, uuid}) => {
const myAction = new Action('com.elgato.template.action');
myAction.onKeyUp(({action, context, device, event, payload}) => {
streamDeck.openUrl('https://developer.elgato.com/documentation/stream-deck/sdk/overview/');
StreamDeck.openUrl('https://developer.elgato.com/documentation/stream-deck/sdk/overview/');
console.log('Your code goes here!');
streamDeck.showOk(context);
StreamDeck.showOk(context);
});
});