Removed a couple unused methods

This commit is contained in:
Travis Nickles 2018-11-06 03:11:16 -06:00
parent ccdfd8cfe5
commit 1fafd0d375

View File

@ -8,7 +8,6 @@ using System.Threading.Tasks;
using static DS4Windows.Global; using static DS4Windows.Global;
using System.Threading; using System.Threading;
using System.Diagnostics; using System.Diagnostics;
using Microsoft.Win32;
namespace DS4Windows 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; private SynchronizationContext uiContext = null;
public bool Start(object tempui, bool showlog = true) public bool Start(object tempui, bool showlog = true)
{ {