IsConnected() public static method

public static IsConnected ( string devicePath ) : bool
devicePath string
return bool
Exemplo n.º 1
0
        internal void RefreshConnectedFlag()
        {
            var newConnectedFlag = HidDevices.IsConnected(_devicePath);

            if (newConnectedFlag != isConnectedFlag)
            {
                if (newConnectedFlag)
                {
                    ReconnectDevice();
                    Inserted?.Invoke();
                }
                else
                {
                    Removed?.Invoke();
                }
            }

            isConnectedFlag = newConnectedFlag;
        }
Exemplo n.º 2
0
 public bool IsConnected(string devicePath)
 {
     return(HidDevices.IsConnected(devicePath));
 }