From 1fafd0d375ea0b78274d0f998dd88c278e75e89c Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 6 Nov 2018 03:11:16 -0600 Subject: [PATCH] Removed a couple unused methods --- DS4Windows/DS4Control/ControlService.cs | 37 ------------------------- 1 file changed, 37 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index ce6ce92..6befb0a 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -8,7 +8,6 @@ using System.Threading.Tasks; using static DS4Windows.Global; using System.Threading; using System.Diagnostics; -using Microsoft.Win32; namespace DS4Windows { @@ -293,42 +292,6 @@ namespace DS4Windows } } - public bool PlugXInputController(int index) - { - int xinputIndex = x360Bus.FirstController + index; - LogDebug("Plugging in X360 Controller #" + xinputIndex); - bool xinputResult = x360Bus.Plugin(index); - if (xinputResult) - { - useDInputOnly[index] = false; - LogDebug("X360 Controller # " + xinputIndex + " connected"); - } - else - { - useDInputOnly[index] = true; - LogDebug("X360 Controller # " + xinputIndex + " failed. Using DInput only mode"); - } - - return xinputResult; - } - - public bool UnplugXInputController(int index) - { - bool unplugResult = x360Bus.Unplug(index); - int xinputIndex = x360Bus.FirstController + index; - if (unplugResult) - { - useDInputOnly[index] = true; - LogDebug("X360 Controller # " + xinputIndex + " unplugged"); - } - else - { - LogDebug("X360 Controller # " + xinputIndex + " failed to unplug"); - } - - return unplugResult; - } - private SynchronizationContext uiContext = null; public bool Start(object tempui, bool showlog = true) {