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; }