コード例 #1
0
        public static bool SetDeviceState(string guid, bool enabled = false)
        {
            if (guid != string.Empty)
            {
                pPolicyConfig.SetEndpointVisibility(guid, enabled);
                return(true);
            }

            return(false);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: Alexx999/NoCableLauncher
 public static void SetDeviceState(string guid, bool enabled = false)
 {
     if (guid != string.Empty)
     {
         pPolicyConfig.SetEndpointVisibility(guid, enabled);
     }
     else
     {
         ExitWithError("Player2 Input device is not set!");
     }
 }