I am writing a driver for the Space Navigator for Notebooks that supports multiple devices.
I am programming on Mac OS X 10.6.7, Xcode 4.
I need a way to get the device USB address as soon as a 3Dconnexion device is plugged in the USB port.
I registered a "device added" and a "device removed" notification callback as follows:
err = InstallConnexionHandlers(tdx_message_handler,
Now, my tdx_add_device_handler() callback is prototyped as follows:
void tdx_add_device_handler(io_connect_t connection);
So my question is:
I need to know the USB address as soon as a device is plugged in, so that then I can match its USB address when I get the whole device state struct in the tdx_message_handler() callback.
Is it possible to get the USB device address from the io_connect_t argument that I get passed in the "device added" callback ?
I made several attempts using the facilities provided by the IOKit framework, but they were all unsuccessful.
Any ideas ?
Thank a lot.
- Luigi Castelli
Post questions, comments and feedback to our 3Dconnexion Mac Development Team.
1 post • Page 1 of 1