forked from sin365/AxibugEmuOnline
Compare commits
No commits in common. "cf8127c55350d5a67cef9d138eba66ffb12a111d" and "667089891a200d51f56ef17a069ab52197571c4e" have entirely different histories.
cf8127c553
...
667089891a
@ -2,10 +2,10 @@
|
|||||||
using AxibugEmuOnline.Client.InputDevices;
|
using AxibugEmuOnline.Client.InputDevices;
|
||||||
using AxibugProtobuf;
|
using AxibugProtobuf;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using static AxibugEmuOnline.Client.Settings.EmuCoreControllerKeyBinding<T>;
|
||||||
|
|
||||||
namespace AxibugEmuOnline.Client.Settings
|
namespace AxibugEmuOnline.Client.Settings
|
||||||
{
|
{
|
||||||
@ -308,21 +308,18 @@ namespace AxibugEmuOnline.Client.Settings
|
|||||||
return settingList[settingSlot];
|
return settingList[settingSlot];
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<InputDevice.InputControl> m_caches = new List<InputDevice.InputControl>();
|
|
||||||
public IEnumerable<InputDevice.InputControl> GetBinding(T emuBtn)
|
public IEnumerable<InputDevice.InputControl> GetBinding(T emuBtn)
|
||||||
{
|
{
|
||||||
m_caches.Clear();
|
|
||||||
|
|
||||||
foreach (var mapSettings in m_mapSetting.Values)
|
foreach (var mapSettings in m_mapSetting.Values)
|
||||||
{
|
{
|
||||||
mapSettings.TryGetValue(emuBtn, out var bindControls);
|
mapSettings.TryGetValue(emuBtn, out var bindControls);
|
||||||
if (bindControls != null)
|
if (bindControls != null)
|
||||||
{
|
{
|
||||||
m_caches.AddRange(bindControls);
|
return bindControls;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return m_caches;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool AnyKeyDown()
|
public bool AnyKeyDown()
|
||||||
@ -341,6 +338,5 @@ namespace AxibugEmuOnline.Client.Settings
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user