Page 1 of 1

what about USB_DeviceInsertNotifyAsync ?

Posted: Wed Feb 24, 2010 10:36 am
by arasium
All is in the subjet :D

Re: what about USB_DeviceInsertNotifyAsync ?

Posted: Wed Feb 24, 2010 7:17 pm
by Izhido
... uh, what about it?

I think we need a little more information before we can attempt to answer anything related about that function, if it exists at all...

What's your real question?

Re: what about USB_DeviceInsertNotifyAsync ?

Posted: Wed Feb 24, 2010 7:33 pm
by arasium
Yes you're right :D

In fact i've found this function is usb.c, but not in the .h.

So is this method valid? Can we use it?
And do we need to pass vid/pid (because w canno't know them in advance)?

Re: what about USB_DeviceInsertNotifyAsync ?

Posted: Thu Feb 25, 2010 4:53 am
by WinterMute
If you want to be able to plug random USB devices with unknown vid/pids into your wii and have them do something useful then I'd suggest installing Wii Linux and/or learning to port usb drivers.

Basically, if you have to ask this kind of question then it's likely that you shouldn't be using the function.

Re: what about USB_DeviceInsertNotifyAsync ?

Posted: Thu Feb 25, 2010 6:29 am
by arasium
In fact y wan't to automatically mount the file system when a device is inserted (like the hbc did when we put an sd).

But if i need to port usb drivers, i will find an other solution (i'm a professional developer, but usb drivers is too dificult to me...).

Thx

Re: what about USB_DeviceInsertNotifyAsync ?

Posted: Fri Feb 26, 2010 10:59 pm
by Tantric
Use .isInserted(), that's what it's there for. See Snes9x GX for an example of usage.