Models
What @sdeck/elgato supports, layouts, and adding another deck.
MODELS in @sdeck/elgato has every Stream Deck it can talk to, by id:
| Ids | Keys | Also |
|---|---|---|
neo | 8, 96 px | 2 touch sensors, 248×58 window |
mini, mini-2022, mini-discord, module-6 | 6, 80 px | |
original, classic, mk2, mk2-scissor, module-15, module-15-scissor | 15, 72 px | |
xl, xl-2022, module-32 | 32, 96 px | |
plus | 8, 120 px | 4 dials, 800×100 touch strip |
plus-xl | 36, 112 px | 6 dials, 1200×100 touch strip |
All have the same methods, and pictures are turned and scaled for each. The Minis and the original of 2017
speak protocols of their own, which the library takes care of. They have no full screen to draw on:
setScreenImage draws the keys' parts of it instead.
Only the Neo has been tried on the real thing. The others follow Elgato's documentation and are tested against it in memory.
Dials
The touch strip is the deck's window. setWindowImage covers all of it, setDialImage and mountDial the
part above one dial. dialDown, dialUp and dialTurn tell what happens to a dial, dialTap that the strip
above it was touched, and windowTap and windowSwipe where.
Layouts
composeScreen(layout, geometry) places keys, sensor strips and the window on the full screen
according to a DeckLayout. deck.setScreenLayout({ keys, sensors, window }) does it for the
connected deck. The layouts are taken from Elgato's diagrams.
Other decks
Subclass StreamDeck from core, give it a DeckModel (id, name, USB ids, layout, rotation) and
implement the protocol methods (parseInput, sendKeyJpeg, sendScreenJpeg, setBrightness,
and so on). The send* methods run inside the write queue and write straight to the transport.
sendFillKey/sendFillScreen default to sending a solid JPEG; override them if the model has a
fill command. Wrap it in a DeckDriver and findDecks / listDecks / openDeck work for it.
ElgatoStreamDeck is the reference implementation.