Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Plug-in USB behaviour

Plug-in USB behaviour

From: Malcolm Tyrrell <malcoh0l_at_yahoo.ie>
Date: Tue, 08 Apr 2008 22:05:16 +0100

Hi all.

I read from:
http://www.rockbox.org/twiki/bin/view/Main/HowtoWritePlugins
that:
"Some button handling, and a check for USB being plugged in while the
plugin is running. The default_handler() call on unhandled events should
be put in all code that handles button input."

OK, so a plug-in should call default_handler(). But what should it do if
SYS_USB_CONNECTED is returned? I observe that most plug-ins exit. Is
there a policy that they should do so? Is is necessary or recommended?

Thanks,

Malcolm
Received on 2008-04-08


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa