Welcome! Log In Create A New Profile

Advanced

Wiimote Rumbling

Posted by Arikado 
Wiimote Rumbling
September 01, 2008 11:00PM
Would someone please tell me how to make the wiimote rumble. I would assume that this is very simple, but unfortunately I have not been able to get it to work. Through header surfing, I managed to find the function to do the trick:

WPAD_Rumble(s32 chan, int status);

I'm trying to get the first wiimote to rumble. So the first parameter is WPAD_CHAN_0. The second one? I have no idea. I tried WPAD_ERR_NONE, but had no luck. I tried a couple other "status" constants like WPAD_ERR_UNKNOWN, but I've had no luck. I would appreciate any help that anyone can offer.



Edited 1 time(s). Last edit at 09/01/2008 11:01PM by Arikado.
Re: Wiimote Rumbling
September 01, 2008 11:11PM
Just speculating here... Did you try 0 for rumble off and non-zero (1, -1, whatever) for rumble on?
Re: Wiimote Rumbling
September 01, 2008 11:12PM
No I did not. How would you stop the rumbling then? Perhaps status is a timer?
Re: Wiimote Rumbling
September 01, 2008 11:14PM
Just went through the source in doxygen.

WPAD_Rumble(WPAD_CHAN_0, 1);
Will make it rumble

0 will make it stop. (Or use some true/false constants, whatever you're used to)

It's just an on-off switch. Time it yourself if you want the wiimote to rumble for a short period of time.
Re: Wiimote Rumbling
September 01, 2008 11:18PM
Beautiful. I love how the function works for both purposes. I'll test it later and report back here.
Re: Wiimote Rumbling
September 01, 2008 11:46PM
Sorry, only registered users may post in this forum.

Click here to login