master #107
@ -165,6 +165,8 @@ public static class AxiHttp
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static IPAddress GetDnsIP(string str)
|
public static IPAddress GetDnsIP(string str)
|
||||||
|
{
|
||||||
|
lock (dictIP2Address)
|
||||||
{
|
{
|
||||||
if (!dictIP2Address.ContainsKey(str))
|
if (!dictIP2Address.ContainsKey(str))
|
||||||
{
|
{
|
||||||
@ -181,6 +183,7 @@ public static class AxiHttp
|
|||||||
}
|
}
|
||||||
return dictIP2Address[str];
|
return dictIP2Address[str];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public enum AxiDownLoadMode
|
public enum AxiDownLoadMode
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
using UnityEngine.InputSystem;
|
||||||
|
|
||||||
namespace AxibugEmuOnline.Client.InputDevices
|
namespace AxibugEmuOnline.Client.InputDevices
|
||||||
{
|
{
|
||||||
@ -77,6 +78,20 @@ namespace AxibugEmuOnline.Client.InputDevices
|
|||||||
public void Update()
|
public void Update()
|
||||||
{
|
{
|
||||||
foreach (var device in m_devices.Values) device.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