public StreamDeckDevice(IStreamDeckRefHandle handle) { this.handle = handle; this._Name = handle.DeviceName; this._Path = handle.DevicePath; }
public StreamDeckDevice(IStreamDeckRefHandle devicePath) { var device = devicePath.Open(); _device = device.WithButtonPressEffect(new ButtonPressEffectConfig() { Scale = 0.9 }).WithDisconnectReplay(); _identifier = new Identifier("StreamDeck." + device.GetSerialNumber()); }
public DeckInstance(IStreamDeckRefHandle connectedDevice) { Deck = connectedDevice.Open(); Deck.KeyStateChanged += KeyStateChanged; }
public StreamDeckConnectionChangedEventArgs(IStreamDeckRefHandle deckHandle, bool connected) { DeckHandle = deckHandle ?? throw new ArgumentNullException(nameof(deckHandle)); Connected = connected; }