User User name Password  
   
Sunday 15.2.2026 / 19:47
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > consoles > nintendo wii - general discussion > homebrewing
Show topics
 
Forums
Forums
Homebrewing
  Jump to:
 
Posted Message
elk1007
Member
_
15. August 2008 @ 23:30 _ Link to this message    Send private message to this user   
I'm not sure if this is the right section, or if these forums even support such content, but I have a question regarding some homebrew code.

I'm using the source code from WiiLight (by Bool) and WiiMotionDemo (by shdwcoder) to learn the bare basics of wii homebrew coding.

I'm trying to acomplish this:
Make buttons A, B, 1, and 2 rumble if held.
However, when I compile my own code, only 2 rumbles normally, and the others (A,B,1) do a strangely small rumble (very small). So I changed from a series of if statements, and I'm trying to accomplish this with switch.





//Held Buttons will rumble


WPAD_ScanPads();


//Exit Function

u32 held = WPAD_ButtonsDown(0);


if ( held & WPAD_BUTTON_HOME ) exit (0);

//Rumble Code (Switch Example)



{
switch (WPAD_Rumble(0,1)) {
case 1:
* ( held & WPAD_BUTTON_A );
break;
case 2:
* ( held & WPAD_BUTTON_B );
break;
case 3:
* ( held & WPAD_BUTTON_1 );
break;
case 4:
* ( held & WPAD_BUTTON_2 );
break;
default:
WPAD_Rumble(0,0);
}

}


That's just the code section that concerns the question. Now I get no rumble.

What am I doing wrong?
ferdyjmg
Member
_
17. August 2008 @ 16:03 _ Link to this message    Send private message to this user   
Wow This is over my head.. Lol But here is a bump for ya!
afterdawn.com > forums > consoles > nintendo wii - general discussion > homebrewing
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2026 by AfterDawn Ltd.

  IDG TechNetwork