I don't have access to libogc at the minute. However, in the Wiiuse includes there will be a few bits you need to add/edit
Firstly, each controller "extension" will have a unique number such as
#define WII_EXTENSION_NUNCHUK 1
The easiest way to find this out is to write a simple homebrew app which lists the extension numbers then just plug in the drums after it's running, and you can create your new #define for it
As for the actual detail. Under the getStatus function (whatever it might be called), you'll find a struct which "union"'s (I think that's the word) several other structures together, one for classic, one for nunchuk etc. You'll need to discover the data structure for the drums, create the new structure and union it into the master status structure.
Hope that makes sense.
Edit: A link to Wiiuse site about Expansion structure -- [
www.wiiuse.net]
Edited 1 time(s). Last edit at 10/27/2008 11:51AM by whodares.