コード例 #1
0
        public StreamDeckDevice(IStreamDeckRefHandle handle)

        {
            this.handle = handle;
            this._Name  = handle.DeviceName;
            this._Path  = handle.DevicePath;
        }
コード例 #2
0
        public StreamDeckDevice(IStreamDeckRefHandle devicePath)
        {
            var device = devicePath.Open();

            _device = device.WithButtonPressEffect(new ButtonPressEffectConfig()
            {
                Scale = 0.9
            }).WithDisconnectReplay();
            _identifier = new Identifier("StreamDeck." + device.GetSerialNumber());
        }
コード例 #3
0
        public DeckInstance(IStreamDeckRefHandle connectedDevice)
        {
            Deck = connectedDevice.Open();

            Deck.KeyStateChanged += KeyStateChanged;
        }
コード例 #4
0
 public StreamDeckConnectionChangedEventArgs(IStreamDeckRefHandle deckHandle, bool connected)
 {
     DeckHandle = deckHandle ?? throw new ArgumentNullException(nameof(deckHandle));
     Connected  = connected;
 }