No description
  • TypeScript 71.5%
  • HTML 15.2%
  • JavaScript 13.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mike Bird fac2d68723
Fix Steam Deck SDK url
Updated the broken link to point to the Welcome page of the SDK docs
2024-01-04 21:26:18 -05:00
src/com.elgato.template.sdPlugin removed .gitmodules 2023-04-27 16:59:23 -04:00
.gitignore closes #10 2023-11-07 14:12:05 -05:00
LICENSE Initial commit 2022-02-15 14:10:58 -05:00
README.md Fix Steam Deck SDK url 2024-01-04 21:26:18 -05:00

Stream Deck Plugin Template

The Stream Deck Plugin Template is a template to let you get started quickly when writing a JavaScript plugin for Stream Deck. Stream Deck Plugin Template requires Stream Deck 6.0 or later.

Description

Stream Deck Plugin Template is a complete plugin that shows you how to

  • load and save settings using Stream Deck's persistent store
  • setup and communicate with the Property Inspector
  • pass messages directly from Property Inspector to the plugin (and vice versa)
  • localize your Property Inspector's UI to another language

Features

  • code written in Javascript
  • cross-platform (macOS, Windows)
  • localization support
  • styled Property Inspector included
  • Property Inspector contains all required boilerplate code to let you instantly work on your plugin's code.

Quick Start Guide

A short guide to help you get started quickly.

Clone the repo

git clone https://github.com/elgatosf/streamdeck-plugin-template

Replace Name

Rename the folder as well as any references.

com.elgato.template.sdPlugin with my.domain.plugin-name.sdPlugin

Important

When sym-linking the plugin, the folder name must end with .sdPlugin.

Get the latest library

You can either clone the javascript library or add it as a submodule to your repository.

Clone

git clone https://github.com/elgatosf/streamdeck-javascript-sdk src/my.domain.plugin-name/libs

Add Submodule

git submodule add https://github.com/elgatosf/streamdeck-javascript-sdk src/my.domain.plugin-name/libs

Start Coding

You can get started in app.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 }) => {
  console.log('Stream Deck connected!');
});

myAction.onKeyUp(({ action, context, device, event, payload }) => {
  console.log('Your key code goes here!');
});

myAction.onDialRotate(({ action, context, device, event, payload }) => {
  console.log('Your dial code goes here!');
});