initial commit
This commit is contained in:
parent
c9092688d6
commit
0a4fe9ee9c
29 changed files with 2686 additions and 2 deletions
19
src/com.elgato.template.sdPlugin/app.js
Normal file
19
src/com.elgato.template.sdPlugin/app.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/// <reference path="libs/js/action.js" />
|
||||
/// <reference path="libs/js/deck.js" />
|
||||
|
||||
const streamDeck = new StreamDeck();
|
||||
|
||||
/**
|
||||
* The first event fired when Stream Deck starts
|
||||
*/
|
||||
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/');
|
||||
|
||||
console.log('Your code goes here!');
|
||||
|
||||
streamDeck.showOk(context);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue