1

Topic: On Mac Device list count is 0

Hi, I am using the latest code on MAC but I cannot find any device even tho there are USB devices connected.

Here is the code:

DeviceList list = DeviceList.Local;

Debug.Log(list.GetAllDevices().Count());

Is there anything else I need to do on MAC?

2

Re: On Mac Device list count is 0

They are USB HID devices? That should work.

Just to make sure it is detecting MacOS properly, does HidDeviceList.Local.FriendlyName say "Mac OS HID"?

3

Re: On Mac Device list count is 0

Hi Zer, thanks for replying.

I am using the latest HIDSharp, version 2.0.2
I am not able to call HidDeviceList.Local.FriendlyName.
Also, DeviceList.Local.FriendlyName is not available.

Is there anything I need to declare?

Thanks!!

4

Re: On Mac Device list count is 0

Oh, sorry.

DeviceList.Local.ToString()

5

Re: On Mac Device list count is 0

I get "Platform Not Supported"

I am on a MacBookPro Version 10.13.6, 2016 Four Thunderbot 3 Ports.

6

Re: On Mac Device list count is 0

Interesting! Are you using a recent version of Mono? 32 or 64-bit mode?