Reach the networked models, and read Elgato's own documentation
Two threads, and they belong together because the second corrected what the first was built on. A Stream Deck Studio is not a USB device. It takes Ethernet and PoE and is driven over TCP, and so is the Network Dock, so nothing here could talk to either -- the Studio sat in the tables as a product id nobody could reach. `StreamDeck.device` is now a tagged-union `Transport` over a HID device or a TCP connection, and everything above it is untouched: the same `keys`, `encoders` and `events`, the same `setImage`. That works because the tunnelled payloads are byte-identical HID reports and key images are not re-chunked, which the loopback test in `Tcp.zig` pins by taking the pages apart again and reassembling the image out of them. `framing.zig` is the protocol with the socket removed, fuzzed like the other parsers, because these bytes come off a network rather than out of a USB device. It is a union rather than a vtable so that the `.none` transport the tests use answers rather than jumps. And Elgato publishes HID documentation, which this README had said for its whole life that it did not. The "Rests on" column gains an *Elgato's docs* tier above two references and a *one reference* tier below it, and the References Cited section stops claiming there is no first-party source. It settled two things and found a bug. Elgato says the Mini rotates ninety degrees clockwise and the Plus XL ninety counterclockwise -- opposite directions, where this library turned both the same way. The Plus XL was wrong, which is the question the README had flagged as the two references disagreeing about a flip. And the Mini was wrong too, by a half turn: **every key image on a Mini has been coming out upside down.** That was settled by putting the same figure on four keys under the four corrections a table can be wrong by and looking at which read correctly, with a Neo and a Plus as controls; the Mini family moves from two references to hardware. `getUnitInfo` is the useful discovery. Feature report `0x08` makes a device report its own keypad matrix and its own key and panel pixel sizes, so a table can be checked against hardware instead of against another implementation. A Neo and a Plus answered with exactly what Elgato documents. Pointing it at a Studio would end the argument about that model's key resolution in one call. Note that `rows` and `cols` describe the matrix and not the key count -- a Neo says four by three, twelve positions, where it has eight keys and two touch buttons. `Panel` is the screen behind the keys. The keys are not separate displays; there is one sheet of glass and the keys are windows onto it, which a checkerboard painted across a Neo's panel shows by running continuously from one key to the next and on into the info strip. That is also how Elgato's software's "background" works, and it is the application's feature rather than the device's -- paint the panel, then draw over only the keys that want a foreground, and a key left alone goes on showing the panel. "The background shows where the foreground is transparent" means nothing more than not writing that key. Also from the documentation: `fillKey` and `fillScreen`, the sleep timeout, and the other two firmware versions every device carries besides the one it calls its own -- plus the two more a Studio has for its encoder board. The sleep timeout does not apply before the device answers the next question, so reading it straight back reports the value it held a moment ago; ten milliseconds is enough and nothing here waits on a caller's behalf. The firmware reports carry a checksum this does not verify, and that is a conclusion rather than an omission. Forty-one algorithms over twenty-three derivations of the report and all twenty-four byte orders, required to agree on six observations from two devices: nothing matched. The reason is in the older protocol, where the same four bytes read as a byte count -- 322 KiB of bootloader and two application images of about 3.28 MiB -- so the field describes the firmware image rather than the eight characters beside it, and the newer protocol's checksum is of an image this library never sees. `setBackground` and `showBackground` are implemented from the documentation and marked untested, because nothing has been able to make a stored background appear. An Original V2 took all thirty-two pages, and then Show Background by Index did nothing, Show Logo showed the manufacturer's logo, none of its 256 feature reports changed across the upload, it blanked to darkness rather than to the background when left idle, and six candidate transparency colours all stayed flat. The field order is unvalidated with it: a swapped header and a discarded write look alike from the host. The Corsair Galleon K100 is the first device here that is not Elgato's. Corsair owns Elgato and Elgato's own SDK counts it among the Stream Decks, but it reports Corsair's vendor id, so `Type` can no longer assume one vendor. It rests on a single implementation, has never been run, and is the only model that stops listening if left alone -- it wants `keepAlive` about twice a second, which this library will not do for anyone. `zig-hidapi` moves to c7805bb, which replaced the minor-number scan with a portable enumeration, made `Device` something opened in place and used by pointer, and dropped the three node-name calls the example printed. So `Transport` holds the device by pointer, `StreamDeck.open` takes what an enumeration reported, `StreamDeckIterator` becomes `Enumerator`, and the example prints Elgato's own product strings from the `DeviceInfo` instead. Enumerating no longer needs permission where opening does, so an unprivileged user now gets `error.AccessDenied` rather than an empty list. The README's reason for being Linux-only changes with it: hidapi has four backends now, and the constraint is `z2dimg`. One breaking change worth calling out. `Events.read` returned `null` for a transport failure, which a caller could only read as "nothing happened" -- and the obvious loop around it then spins forever on a deck that has gone away. Over USB that is a device somebody unplugged; over TCP it is a socket that will never recover. It returns the error now. `tools/probe.zig` is how most of the above was established: it asks every attached device what it says about itself, prints the tables beside the answers, and carries the experiments -- the orientation corrections, the report scan, the sleep round trip, the background attempts. Worth keeping, because a Stream Deck accepts writes it does not implement. It answers all 256 feature report ids and takes output reports for commands it has never heard of, without error either way, so nothing about a write being accepted means it did anything. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WUvf9zwMsPMwUDkUFViFbu