smurk-too / wii-softchip

Automatically exported from code.google.com/p/wii-softchip
0 stars 0 forks source link

Classic Controller Support #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Add the classic controller support :

For this, we must add _CLASSIC_ before WPAD. It's as WPAD_BUTTON_A but it's
WPAD_CLASSIC_BUTTON_A.

Example (lines 262-271 ; file : SoftChip.cpp ; r35) :

unsigned int Buttons    = WPAD_ButtonsDown(0);
unsigned int GC_Buttons = PAD_ButtonsDown(0);

if ((Buttons & WPAD_BUTTON_HOME) || (Buttons & WPAD_CLASSIC_BUTTON_HOME) ||
(GC_Buttons & PAD_BUTTON_START))
     exit(0);

if ((Buttons & WPAD_BUTTON_A) || (Buttons & WPAD_CLASSIC_BUTTON_A) ||
(GC_Buttons & PAD_BUTTON_A))
   {
     Load_Disc();
   }

Original issue reported on code.google.com by cashman9...@gmail.com on 10 Nov 2008 at 6:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I forgot to introduce myself ^^ I'm CashMan a french Wii programmer. If you 
have a
question please contact me on my website : http://www.CashMan-Productions.c.la

Original comment by cashman9...@gmail.com on 10 Nov 2008 at 6:57

GoogleCodeExporter commented 8 years ago

Original comment by luccax@gmail.com on 10 Nov 2008 at 3:53