Ejemplo n.º 1
0
        public StreamDeckDevice(IStreamDeckRefHandle devicePath)
        {
            var device = devicePath.Open();

            _device = device.WithButtonPressEffect(new ButtonPressEffectConfig()
            {
                Scale = 0.9
            }).WithDisconnectReplay();
            _identifier = new Identifier("StreamDeck." + device.GetSerialNumber());
        }
Ejemplo n.º 2
0
        public DeckInstance(IStreamDeckRefHandle connectedDevice)
        {
            Deck = connectedDevice.Open();

            Deck.KeyStateChanged += KeyStateChanged;
        }