コード例 #1
0
        /// <summary>
        /// Checks for new Corsair USB devices.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CheckForDevice(object sender, ElapsedEventArgs e)
        {
            int newNumDevices = CueSDK.CorsairGetDeviceCount();

            if (numDevices < newNumDevices)
            {
                CueSDK.Initialize();
                NewCorsairDeviceConnected?.Invoke(this, new EventArgs());
            }

            numDevices = newNumDevices;
        }