forked from sin365/AxibugEmuOnline
Compare commits
No commits in common. "51d638e116fb3372bf49e22bc8a4ae3e7f8c057c" and "78f56831ae17e6ebaee768e1278be44346c00a99" have entirely different histories.
51d638e116
...
78f56831ae
@ -166,23 +166,20 @@ public static class AxiHttp
|
||||
|
||||
public static IPAddress GetDnsIP(string str)
|
||||
{
|
||||
lock (dictIP2Address)
|
||||
if (!dictIP2Address.ContainsKey(str))
|
||||
{
|
||||
if (!dictIP2Address.ContainsKey(str))
|
||||
IPHostEntry host = Dns.GetHostEntry(str);
|
||||
IPAddress ip = null;
|
||||
foreach (var item in host.AddressList)
|
||||
{
|
||||
IPHostEntry host = Dns.GetHostEntry(str);
|
||||
IPAddress ip = null;
|
||||
foreach (var item in host.AddressList)
|
||||
if (item.AddressFamily == AddressFamily.InterNetwork)
|
||||
{
|
||||
if (item.AddressFamily == AddressFamily.InterNetwork)
|
||||
{
|
||||
ip = item; break;
|
||||
}
|
||||
ip = item; break;
|
||||
}
|
||||
dictIP2Address[str] = ip;
|
||||
}
|
||||
return dictIP2Address[str];
|
||||
dictIP2Address[str] = ip;
|
||||
}
|
||||
return dictIP2Address[str];
|
||||
}
|
||||
|
||||
public enum AxiDownLoadMode
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace AxibugEmuOnline.Client.InputDevices
|
||||
{
|
||||
@ -78,20 +77,6 @@ namespace AxibugEmuOnline.Client.InputDevices
|
||||
public void Update()
|
||||
{
|
||||
foreach (var device in m_devices.Values) device.Update();
|
||||
|
||||
foreach (var device in InputSystem.devices)
|
||||
{
|
||||
if (device is Mouse)
|
||||
continue;
|
||||
for (int i = 0; i < device.allControls.Count; i++)
|
||||
{
|
||||
if (device.allControls[i].IsPressed(0))
|
||||
{
|
||||
Debug.Log($"{device.displayName}| {device.allControls[i].displayName}|{device.allControls[i].name}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user