removed static event handler
This commit is contained in:
parent
0a4fe9ee9c
commit
c2bfece006
8 changed files with 79 additions and 75 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue