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