class StreamDeck
extends EventTarget
import { StreamDeck } from "https://deno.land/x/deno_streamdeck@v0.4.0/mod.ts";
Properties
Methods
close(): boolean
Close the Stream Deck device and exit HIDAPI
(close
event is dispatched on disconnection)
open(): void
Initialize HIDAPI and open the Stream Deck device
(open
event is dispatched on connection)
readKeys(): Promise<boolean>
Wait for Stream Deck key input and update key states
(keystates
event is dispatched on input)
setKeyData(): void
key: number,
data?: Uint8Array,
id?: symbol | null,
Set an individual Stream Deck key image