Welcome! Log In Create A New Profile

Advanced

Wiimote + GC Controller

Posted by profetylen 
Wiimote + GC Controller
May 29, 2009 12:34AM
Is there a way to use both a wiimote and a GC controller at the same time?
Re: Wiimote + GC Controller
May 29, 2009 01:31AM
Yeah, you'd have to check for both controllers, like if(WiiPressed & WPAD_BUTTON_A || GCNPressed & PAD_BUTTON_A) would tell you if A on the wiimote or A on the GCN controller were pressed.
Where WiiPressed is WPAD_ButtonsHeld(WPAD_CHAN_0) and GCNPressed is PAD_ButtonsHeld(PAD_CHAN0)
Re: Wiimote + GC Controller
May 29, 2009 01:36AM
Also, remember to initialize the WiiMote and Gamecube controllers (WPAD_Init() and PAD_Init(), respectively). Also, run WPAD_ScanPads() and PAD_ScanPads() every time in your main loop.
Re: Wiimote + GC Controller
May 29, 2009 11:46AM
OK!

I tried that yesterday, but the wii crashed and I figured maybe that's because I must change too gamecube rules in the makefile or something and therefore I figured maybe it's impossible.

However, today I noticed (thanks to you, Arikado), that I forgot to call PAD_Init().

Thanks to both of you, for your explicit help!



Edited 1 time(s). Last edit at 05/29/2009 12:08PM by profetylen.
Sorry, only registered users may post in this forum.

Click here to login