Added support for Streamdeck Pedal and updated UI to better fit the Packed UI style

This commit is contained in:
2026-02-27 22:47:08 +01:00
committed by erik
parent 5a70f775f1
commit 93faae5cc8
1463 changed files with 306917 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import type { DeviceModelId, HIDDevice, HIDDeviceEvents, HIDDeviceInfo } from '@elgato-stream-deck/core';
import type { ChildHIDDeviceInfo } from '@elgato-stream-deck/core/dist/hid-device';
import { EventEmitter } from 'eventemitter3';
import type { HIDAsync } from 'node-hid';
/**
* Information about a found streamdeck
*/
export interface StreamDeckDeviceInfo {
/** The model of the device */
model: DeviceModelId;
/** The connected path of the device in the usb tree */
path: string;
/** The serialNumber of the device. If set it can be used as a unique hardware identifier */
serialNumber?: string;
}
/**
* The wrapped node-hid HIDDevice.
* This translates it into the common format expected by @elgato-stream-deck/core
*/
export declare class NodeHIDDevice extends EventEmitter<HIDDeviceEvents> implements HIDDevice {
private device;
constructor(device: HIDAsync);
close(): Promise<void>;
sendFeatureReport(data: Uint8Array): Promise<void>;
getFeatureReport(reportId: number, reportLength: number): Promise<Uint8Array>;
sendReports(buffers: Uint8Array[]): Promise<void>;
getDeviceInfo(): Promise<HIDDeviceInfo>;
getChildDeviceInfo(): Promise<ChildHIDDeviceInfo | null>;
}
//# sourceMappingURL=hid-device.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hid-device.d.ts","sourceRoot":"","sources":["../src/hid-device.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAA+B,MAAM,UAAU,CAAA;AAErE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACpC,8BAA8B;IAC9B,KAAK,EAAE,aAAa,CAAA;IACpB,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAA;IACZ,4FAA4F;IAC5F,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;GAGG;AACH,qBAAa,aAAc,SAAQ,YAAY,CAAC,eAAe,CAAE,YAAW,SAAS;IACpF,OAAO,CAAC,MAAM,CAAU;gBAEZ,MAAM,EAAE,QAAQ;IAef,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAGlD,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAG7E,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQjD,aAAa,IAAI,OAAO,CAAC,aAAa,CAAC;IAUvC,kBAAkB,IAAI,OAAO,CAAC,kBAAkB,GAAG,IAAI,CAAC;CAIrE"}

View File

@@ -0,0 +1,53 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeHIDDevice = void 0;
const eventemitter3_1 = require("eventemitter3");
/**
* The wrapped node-hid HIDDevice.
* This translates it into the common format expected by @elgato-stream-deck/core
*/
class NodeHIDDevice extends eventemitter3_1.EventEmitter {
device;
constructor(device) {
super();
this.device = device;
this.device.on('error', (error) => this.emit('error', error));
this.device.on('data', (data) => {
// Button press
if (data[0] === 0x01) {
const keyData = data.subarray(1);
this.emit('input', keyData);
}
});
}
async close() {
await this.device.close();
}
async sendFeatureReport(data) {
await this.device.sendFeatureReport(Buffer.from(data)); // Future: avoid re-wrap
}
async getFeatureReport(reportId, reportLength) {
return this.device.getFeatureReport(reportId, reportLength);
}
async sendReports(buffers) {
const ps = [];
for (const data of buffers) {
ps.push(this.device.write(Buffer.from(data))); // Future: avoid re-wrap
}
await Promise.all(ps);
}
async getDeviceInfo() {
const info = await this.device.getDeviceInfo();
return {
path: info.path,
productId: info.productId,
vendorId: info.vendorId,
};
}
async getChildDeviceInfo() {
// Not supported
return null;
}
}
exports.NodeHIDDevice = NodeHIDDevice;
//# sourceMappingURL=hid-device.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"hid-device.js","sourceRoot":"","sources":["../src/hid-device.ts"],"names":[],"mappings":";;;AAEA,iDAA4C;AAe5C;;;GAGG;AACH,MAAa,aAAc,SAAQ,4BAA6B;IACvD,MAAM,CAAU;IAExB,YAAY,MAAgB;QAC3B,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAA;QAE7D,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;YACvC,eAAe;YACf,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;gBACtB,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;gBAChC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;YAC5B,CAAC;QACF,CAAC,CAAC,CAAA;IACH,CAAC;IAEM,KAAK,CAAC,KAAK;QACjB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;IAC1B,CAAC;IAEM,KAAK,CAAC,iBAAiB,CAAC,IAAgB;QAC9C,MAAM,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA,CAAC,wBAAwB;IAChF,CAAC;IACM,KAAK,CAAC,gBAAgB,CAAC,QAAgB,EAAE,YAAoB;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAA;IAC5D,CAAC;IACM,KAAK,CAAC,WAAW,CAAC,OAAqB;QAC7C,MAAM,EAAE,GAAmB,EAAE,CAAA;QAC7B,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;YAC5B,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA,CAAC,wBAAwB;QACvE,CAAC;QACD,MAAM,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACtB,CAAC;IAEM,KAAK,CAAC,aAAa;QACzB,MAAM,IAAI,GAAsB,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAA;QAEjE,OAAO;YACN,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACvB,CAAA;IACF,CAAC;IAEM,KAAK,CAAC,kBAAkB;QAC9B,gBAAgB;QAChB,OAAO,IAAI,CAAA;IACZ,CAAC;CACD;AAlDD,sCAkDC"}

29
node_modules/@elgato-stream-deck/node/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
import type { OpenStreamDeckOptions, StreamDeck } from '@elgato-stream-deck/core';
import * as HID from 'node-hid';
import { StreamDeckDeviceInfo } from './hid-device.js';
import { JPEGEncodeOptions } from '@elgato-stream-deck/node-lib';
export { VENDOR_ID, CORSAIR_VENDOR_ID, DeviceModelId, KeyIndex, StreamDeck, StreamDeckProxy, LcdPosition, Dimension, StreamDeckControlDefinitionBase, StreamDeckButtonControlDefinition, StreamDeckButtonControlDefinitionNoFeedback, StreamDeckButtonControlDefinitionRgbFeedback, StreamDeckButtonControlDefinitionLcdFeedback, StreamDeckEncoderControlDefinition, StreamDeckLcdSegmentControlDefinition, StreamDeckControlDefinition, StreamDeckTcpChildDeviceInfo, OpenStreamDeckOptions, PreparedBuffer, getStreamDeckModelName, } from '@elgato-stream-deck/core';
export { StreamDeckDeviceInfo, JPEGEncodeOptions };
export interface OpenStreamDeckOptionsNode extends OpenStreamDeckOptions {
jpegOptions?: JPEGEncodeOptions;
resetToLogoOnClose?: boolean;
}
/**
* Scan for and list detected devices
*/
export declare function listStreamDecks(): Promise<StreamDeckDeviceInfo[]>;
/**
* If the provided device is a streamdeck, get the info about it
*/
export declare function getStreamDeckDeviceInfo(dev: HID.Device): StreamDeckDeviceInfo | null;
/**
* Get the info of a device if the given path is a streamdeck
*/
export declare function getStreamDeckInfo(path: string): Promise<StreamDeckDeviceInfo | undefined>;
/**
* Open a streamdeck
* @param devicePath The path of the device to open.
* @param userOptions Options to customise the device behvaiour
*/
export declare function openStreamDeck(devicePath: string, userOptions?: OpenStreamDeckOptionsNode): Promise<StreamDeck>;
//# sourceMappingURL=index.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAEjF,OAAO,KAAK,GAAG,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAiB,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAErE,OAAO,EAAc,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAE5E,OAAO,EACN,SAAS,EACT,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACR,UAAU,EACV,eAAe,EACf,WAAW,EACX,SAAS,EACT,+BAA+B,EAC/B,iCAAiC,EACjC,2CAA2C,EAC3C,4CAA4C,EAC5C,4CAA4C,EAC5C,kCAAkC,EAClC,qCAAqC,EACrC,2BAA2B,EAC3B,4BAA4B,EAC5B,qBAAqB,EACrB,cAAc,EACd,sBAAsB,GACtB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,CAAA;AAElD,MAAM,WAAW,yBAA0B,SAAQ,qBAAqB;IACvE,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,oBAAoB,EAAE,CAAC,CASvE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,GAAG,oBAAoB,GAAG,IAAI,CAYpF;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,SAAS,CAAC,CAG/F;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC,CAgCrH"}

89
node_modules/@elgato-stream-deck/node/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,89 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getStreamDeckModelName = exports.StreamDeckProxy = exports.DeviceModelId = exports.CORSAIR_VENDOR_ID = exports.VENDOR_ID = void 0;
exports.listStreamDecks = listStreamDecks;
exports.getStreamDeckDeviceInfo = getStreamDeckDeviceInfo;
exports.getStreamDeckInfo = getStreamDeckInfo;
exports.openStreamDeck = openStreamDeck;
const core_1 = require("@elgato-stream-deck/core");
const HID = require("node-hid");
const hid_device_js_1 = require("./hid-device.js");
const wrapper_js_1 = require("./wrapper.js");
const node_lib_1 = require("@elgato-stream-deck/node-lib");
var core_2 = require("@elgato-stream-deck/core");
Object.defineProperty(exports, "VENDOR_ID", { enumerable: true, get: function () { return core_2.VENDOR_ID; } });
Object.defineProperty(exports, "CORSAIR_VENDOR_ID", { enumerable: true, get: function () { return core_2.CORSAIR_VENDOR_ID; } });
Object.defineProperty(exports, "DeviceModelId", { enumerable: true, get: function () { return core_2.DeviceModelId; } });
Object.defineProperty(exports, "StreamDeckProxy", { enumerable: true, get: function () { return core_2.StreamDeckProxy; } });
Object.defineProperty(exports, "getStreamDeckModelName", { enumerable: true, get: function () { return core_2.getStreamDeckModelName; } });
/**
* Scan for and list detected devices
*/
async function listStreamDecks() {
const devices = {};
for (const dev of await HID.devicesAsync()) {
if (dev.path && !devices[dev.path]) {
const info = getStreamDeckDeviceInfo(dev);
if (info)
devices[dev.path] = info;
}
}
return Object.values(devices);
}
/**
* If the provided device is a streamdeck, get the info about it
*/
function getStreamDeckDeviceInfo(dev) {
const model = core_1.DEVICE_MODELS.find((m) => m.productIds.includes(dev.productId) && m.vendorId === dev.vendorId);
if (!model || !dev.path)
return null;
if (model.hidUsage !== undefined && dev.usage !== model.hidUsage)
return null;
if (model.hidInterface !== undefined && dev.interface !== model.hidInterface)
return null;
return {
model: model.id,
path: dev.path,
serialNumber: dev.serialNumber,
};
}
/**
* Get the info of a device if the given path is a streamdeck
*/
async function getStreamDeckInfo(path) {
const allDevices = await listStreamDecks();
return allDevices.find((dev) => dev.path === path);
}
/**
* Open a streamdeck
* @param devicePath The path of the device to open.
* @param userOptions Options to customise the device behvaiour
*/
async function openStreamDeck(devicePath, userOptions) {
// Clone the options, to ensure they dont get changed
const jpegOptions = userOptions?.jpegOptions
? { ...userOptions.jpegOptions }
: undefined;
const options = {
encodeJPEG: async (buffer, width, height) => (0, node_lib_1.encodeJPEG)(buffer, width, height, jpegOptions),
...userOptions,
};
let device;
try {
const hidDevice = await HID.HIDAsync.open(devicePath);
device = new hid_device_js_1.NodeHIDDevice(hidDevice);
const deviceInfo = await device.getDeviceInfo();
const model = core_1.DEVICE_MODELS.find((m) => deviceInfo.vendorId === m.vendorId && m.productIds.includes(deviceInfo.productId));
if (!model) {
throw new Error('Stream Deck is of unexpected type.');
}
const rawSteamdeck = await Promise.resolve(model.factory(device, options));
return new wrapper_js_1.StreamDeckNode(rawSteamdeck, userOptions?.resetToLogoOnClose ?? false);
}
catch (e) {
if (device)
await device.close().catch(() => null); // Suppress error
throw e;
}
}
//# sourceMappingURL=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AC,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,KAAK,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CACxF,CAAA;QACD,IAAI,CAAC,KAAK,EAAE,CAAC;YACZ,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;QACtD,CAAC;QAED,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;QAC1E,OAAO,IAAI,2BAAc,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,IAAI,KAAK,CAAC,CAAA;IAClF,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,IAAI,MAAM;YAAE,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA,CAAC,iBAAiB;QACpE,MAAM,CAAC,CAAA;IACR,CAAC;AACF,CAAC"}

View File

@@ -0,0 +1 @@
{"root":["../src/hid-device.ts","../src/index.ts","../src/wrapper.ts"],"version":"5.9.3"}

View File

@@ -0,0 +1,8 @@
import type { StreamDeck } from '@elgato-stream-deck/core';
import { StreamDeckProxy } from '@elgato-stream-deck/core';
export declare class StreamDeckNode extends StreamDeckProxy {
private readonly resetToLogoOnClose;
constructor(device: StreamDeck, resetToLogoOnClose: boolean);
close(): Promise<void>;
}
//# sourceMappingURL=wrapper.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrapper.d.ts","sourceRoot":"","sources":["../src/wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,qBAAa,cAAe,SAAQ,eAAe;IAGjD,OAAO,CAAC,QAAQ,CAAC,kBAAkB;gBADnC,MAAM,EAAE,UAAU,EACD,kBAAkB,EAAE,OAAO;IAKhC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAMnC"}

19
node_modules/@elgato-stream-deck/node/dist/wrapper.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamDeckNode = void 0;
const core_1 = require("@elgato-stream-deck/core");
class StreamDeckNode extends core_1.StreamDeckProxy {
resetToLogoOnClose;
constructor(device, resetToLogoOnClose) {
super(device);
this.resetToLogoOnClose = resetToLogoOnClose;
}
async close() {
if (this.resetToLogoOnClose) {
await this.resetToLogo();
}
await super.close();
}
}
exports.StreamDeckNode = StreamDeckNode;
//# sourceMappingURL=wrapper.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"wrapper.js","sourceRoot":"","sources":["../src/wrapper.ts"],"names":[],"mappings":";;;AACA,mDAA0D;AAE1D,MAAa,cAAe,SAAQ,sBAAe;IAGhC;IAFlB,YACC,MAAkB,EACD,kBAA2B;QAE5C,KAAK,CAAC,MAAM,CAAC,CAAA;QAFI,uBAAkB,GAAlB,kBAAkB,CAAS;IAG7C,CAAC;IAEM,KAAK,CAAC,KAAK;QACjB,IAAI,IAAI,CAAC,kBAAkB,EAAE,CAAC;YAC7B,MAAM,IAAI,CAAC,WAAW,EAAE,CAAA;QACzB,CAAC;QACD,MAAM,KAAK,CAAC,KAAK,EAAE,CAAA;IACpB,CAAC;CACD;AAdD,wCAcC"}