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,47 @@
import type { Dimension } from './id.js';
export interface StreamDeckControlDefinitionBase {
type: 'button' | 'encoder' | 'lcd-segment';
row: number;
column: number;
}
export interface StreamDeckButtonControlDefinitionBase extends StreamDeckControlDefinitionBase {
type: 'button';
index: number;
hidIndex: number;
feedbackType: 'none' | 'rgb' | 'lcd';
}
export interface StreamDeckButtonControlDefinitionNoFeedback extends StreamDeckButtonControlDefinitionBase {
feedbackType: 'none';
}
export interface StreamDeckButtonControlDefinitionRgbFeedback extends StreamDeckButtonControlDefinitionBase {
feedbackType: 'rgb';
}
export interface StreamDeckButtonControlDefinitionLcdFeedback extends StreamDeckButtonControlDefinitionBase {
feedbackType: 'lcd';
pixelSize: Dimension;
}
export type StreamDeckButtonControlDefinition = StreamDeckButtonControlDefinitionNoFeedback | StreamDeckButtonControlDefinitionRgbFeedback | StreamDeckButtonControlDefinitionLcdFeedback;
export interface StreamDeckEncoderControlDefinition extends StreamDeckControlDefinitionBase {
type: 'encoder';
index: number;
hidIndex: number;
/** Whether the encoder has a central led */
hasLed: boolean;
/** The number of steps in encoder led rings (if any) */
ledRingSteps: number;
/** Encoding offset of the ring leds */
lcdRingOffset?: number;
}
export interface StreamDeckLcdSegmentControlDefinition extends StreamDeckControlDefinitionBase {
type: 'lcd-segment';
id: 0;
columnSpan: number;
rowSpan: number;
pixelSize: Dimension;
/**
* Whether the LCD segment supports drawing regions
*/
drawRegions: boolean;
}
export type StreamDeckControlDefinition = StreamDeckButtonControlDefinition | StreamDeckEncoderControlDefinition | StreamDeckLcdSegmentControlDefinition;
//# sourceMappingURL=controlDefinition.d.ts.map