Rearrange platform specific plugins.

This commit is contained in:
2023-09-25 10:52:16 +08:00
parent 84acb2c12d
commit 825818679c
27 changed files with 30 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
using System.Runtime.InteropServices;
namespace Cryville.Input.Unity.Android {
struct ProxiedInputFrame {
public int hid;
public int id;
public int action;
public long time;
public float x;
public float y;
public float z;
public float w;
};
internal static class NativeMethods {
[DllImport("AndroidInputProxy")]
[PreserveSig]
public static extern int AndroidInputProxy_Poll(out ProxiedInputFrame frame);
}
}