// SPDX-FileCopyrightText: © 2025 Jeffrey C. Ollie // SPDX-License-Identifier: MIT //! The original Stream Deck. Its fifteen keys are arranged in a grid //! five across and three down, each with its own 72x72 display, and it //! has neither encoders nor a touchscreen. It is the only model other //! than the Mini that takes BMP rather than JPEG images. //! //! `devices.zig` gathers this module together with the one for every //! other model, so that the control groups can look up the properties //! of whichever device they are attached to. const ElgatoStreamDeckOriginal = @This(); const KeyFeature = @import("../Keys.zig").KeyFeature; pub const vendor: u16 = 0x0fd9; pub const product: u16 = 0x0060; /// What this model's keys look like and what they can do. Every device /// module declares this, so the fields and functions below are the same /// from one model to the next even though the values differ. pub const keys = struct { /// The number of columns in the key grid. pub const cols: u5 = 5; /// The number of rows in the key grid. pub const rows: u5 = 3; /// The number of touch keys beyond the grid. This model has none. pub const touch: u5 = 0; /// The total number of keys, the grid and the touch keys together. pub const count: u8 = @as(u8, cols) * rows + touch; /// What the given key is capable of, or null if this model has no /// such key. Keys are numbered from zero. Every key here displays a /// BMP image, sent with a v1 header and flipped both ways because /// the displays are mounted upside down. pub fn getFeature(key: u8) ?KeyFeature { switch (key) { 0...14 => { return .{ .image = .{ .header_format = .v1, .image_format = .BMP, .width = 72, .height = 72, .rotation = null, .flip_left_right = true, .flip_top_bottom = true, }, }; }, else => return null, } } };