mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-12-25 16:11:49 +01:00
Removed a couple unused methods
This commit is contained in:
parent
ccdfd8cfe5
commit
1fafd0d375
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user