@elgato/streamdeck
Version:
The official Node.js SDK for creating Stream Deck plugins.
17 lines (16 loc) • 478 B
JavaScript
import { Event } from "./event.js";
/**
* Provides information for events relating to a device.
*/
export class DeviceEvent extends Event {
device;
/**
* Initializes a new instance of the {@link DeviceEvent} class.
* @param source Source of the event, i.e. the original message from Stream Deck.
* @param device Device that event is associated with.
*/
constructor(source, device) {
super(source);
this.device = device;
}
}