Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Replacing Windows DLL with what in iOS?

$
0
0
I'm trying to deploy a Unity test app to iOS to understand what we will need to provide to developers wishing to use our device. The device is custom hardware and shows up in Windows as a HID device over USB or BLE. In the Windows builds the Unity script calls functions exposed in a DLL written targeting the "Unity 3.5 .net Subset Base Class Libraries" as required. The functions in that DLL make native calls to Windows functions like [HidP_GetCaps][1], [SleepEx][2], [ReadFileEx][3], etc. Clearly that DLL is very Windows specific. The calls into the DLL are mainly subscribing to events. For example here's the Start method in my Unity script void Start () { DeviceManager.Instance.DeviceConnected += DeviceConnected; DeviceManager.Instance.DeviceDisconnected += DeviceDisconnected; DeviceManager.Instance.Initialize(Communication.AllSupported); } Unity prepares an Xcode project for me when I build this for iOS. What should I be making to replace the DLL so that Unity developers who want to write for our device can target iOS? Where do I replace the DLL calls to target this whatever-it-is? [1]: https://msdn.microsoft.com/en-us/library/windows/hardware/ff539715(v=vs.85).aspx [2]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms686307(v=vs.85).aspx [3]: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365468(v=vs.85).aspx

Viewing all articles
Browse latest Browse all 4709

Trending Articles