예제 #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());
        }
예제 #2
0
        public DeckInstance(IStreamDeckRefHandle connectedDevice)
        {
            Deck = connectedDevice.Open();

            Deck.KeyStateChanged += KeyStateChanged;
        }