mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 17:29:18 +01:00
Fixed typo
This commit is contained in:
parent
88081faba8
commit
5abc178841
@ -11,8 +11,8 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
private const int DELAY_TIME = 200; // measured in ms
|
private const int DELAY_TIME = 200; // measured in ms
|
||||||
|
|
||||||
private Dictionary<int, OutputDevice> devictDict = new Dictionary<int, OutputDevice>();
|
private Dictionary<int, OutputDevice> deviceDict = new Dictionary<int, OutputDevice>();
|
||||||
private Dictionary<OutputDevice, int> revDevictDict = new Dictionary<OutputDevice, int>();
|
private Dictionary<OutputDevice, int> revDeviceDict = new Dictionary<OutputDevice, int>();
|
||||||
private OutputDevice[] outputDevices = new OutputDevice[4];
|
private OutputDevice[] outputDevices = new OutputDevice[4];
|
||||||
private Queue<Action> actions = new Queue<Action>();
|
private Queue<Action> actions = new Queue<Action>();
|
||||||
private object actionLock = new object();
|
private object actionLock = new object();
|
||||||
@ -101,8 +101,8 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
outputDevice.Connect();
|
outputDevice.Connect();
|
||||||
outputDevices[slot] = outputDevice;
|
outputDevices[slot] = outputDevice;
|
||||||
devictDict.Add(slot, outputDevice);
|
deviceDict.Add(slot, outputDevice);
|
||||||
revDevictDict.Add(outputDevice, slot);
|
revDeviceDict.Add(outputDevice, slot);
|
||||||
Task.Delay(DELAY_TIME).Wait();
|
Task.Delay(DELAY_TIME).Wait();
|
||||||
outdevs[inIdx] = outputDevice;
|
outdevs[inIdx] = outputDevice;
|
||||||
}
|
}
|
||||||
@ -120,12 +120,12 @@ namespace DS4Windows
|
|||||||
{
|
{
|
||||||
Action tempAction = new Action(() =>
|
Action tempAction = new Action(() =>
|
||||||
{
|
{
|
||||||
if (revDevictDict.ContainsKey(outputDevice))
|
if (revDeviceDict.ContainsKey(outputDevice))
|
||||||
{
|
{
|
||||||
int slot = revDevictDict[outputDevice];
|
int slot = revDeviceDict[outputDevice];
|
||||||
outputDevices[slot] = null;
|
outputDevices[slot] = null;
|
||||||
devictDict.Remove(slot);
|
deviceDict.Remove(slot);
|
||||||
revDevictDict.Remove(outputDevice);
|
revDeviceDict.Remove(outputDevice);
|
||||||
outputDevice.Disconnect();
|
outputDevice.Disconnect();
|
||||||
outdevs[inIdx] = null;
|
outdevs[inIdx] = null;
|
||||||
if (!immediate)
|
if (!immediate)
|
||||||
|
Loading…
Reference in New Issue
Block a user