elgato-stream-deck
is a Node.js library for interfacing
with the Elgato Stream Deck.
$ npm install --save elgato-stream-deck
const streamDeck = require('elgato-stream-deck')
streamDeck.on('down', keyIndex => {
console.log('key %d down', keyIndex);
});
streamDeck.on('up', keyIndex => {
console.log('key %d up', keyIndex);
});
streamDeck.on('error', error => {
console.error(error);
});
- Key
down
and keyup
events
- Key combinations
- Send new images to keys
- Support "pages" feature from the official Elgato Stream Deck software
The elgato-stream-deck team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.
All participants and maintainers in this project are expected to follow Code of Conduct, and just generally be kind to each other.
Please refer to the Changelog for project history details, too.
Fired whenever a key is pressed. keyIndex
is the 0-14 numerical index of that key.
streamDeck.on('down', keyIndex => {
console.log('key %d down', keyIndex);
});
Fired whenever a key is released. keyIndex
is the 0-14 numerical index of that key.
streamDeck.on('up', keyIndex => {
console.log('key %d up', keyIndex);
});
Fired whenever an error is detected by the node-hid
library.
Always add a listener for this event! If you don't, errors will be silently dropped.
streamDeck.on('error', keyIndex => {
console.log('key %d error', keyIndex);
});