gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > isRumbleInserted() not detecting official rumble pak?

#129795 - spinal_cord - Sun May 27, 2007 12:49 pm

Having recently bought a game that came with the Nintendo Rumble Pak (action loop/magnetica), I thought I'd add support to SensitiveDS Anyway I cant get isRumbleInserted() to detect it.

Anyone got any hints?
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#130124 - tondopie - Thu May 31, 2007 2:55 am

that function is a boolean. Make sure you are checking if it returns something, and not just using it like a normal 'void' function.


Code:
if( isRumbleInserted() == 1) function();
else function2();
      

#130147 - spinal_cord - Thu May 31, 2007 9:25 am

I'm using it as
Code:
if(isRumbleInserted())
   {
    // rumble is inserted

   } else {
    // rumble is inserted

   }


always false :(

I'm just going to use rumble code without checking, is it likely to do any hard to not-rumble paks, such as gba carts?
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#130159 - simonjhall - Thu May 31, 2007 11:00 am

Isn't there a problem on DS lites where the rumble isn't detected? Something to do with interrupts...really can't remember!
_________________
Big thanks to everyone who donated for Quake2

#130278 - tondopie - Fri Jun 01, 2007 10:05 pm

spinal_cord wrote:

Code:
if(isRumbleInserted())
   {
    // rumble is inserted

   } else {
    // rumble is inserted

   }




This is not going to get you anywhere...

you need some function in the 'if' and 'else' so if there is one inserted...

Code:
if(   isRumbleInserted() == 1) {
            function1();
         }   
         else {   
            function2();
         }

#130282 - spinal_cord - Fri Jun 01, 2007 11:09 pm

tondopie - The problem is that isRumbleInserted() always returns false weather or not I have the Rumble Pak inserted. It has nothing to do with whats inside my if statement. The code block was to show how i'm usinf the function, not what i'm using it for.

simonjhall - Thankyou for a sensible answer. I suspect you might be right as I'm using a dslite.
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#130284 - tondopie - Fri Jun 01, 2007 11:13 pm

the DevKitPro guys will hopefully get this goin...

#130301 - simonjhall - Sat Jun 02, 2007 12:46 am

Yeah, I just had a bit of a search and there seems to be beef with the rumble working on the lite.

In fact, as nothing bad's gonna happen if the rumble isn't plugged in, you may as well send the rumble commands regardless of whether something's plugged in or not!

@tondopie: yikes ;-)
_________________
Big thanks to everyone who donated for Quake2

#130303 - tondopie - Sat Jun 02, 2007 12:58 am

heh heh.... I just thought of soemthing.... the DS has no vibrator app.

Sry... off topic and dirty....


@Simon do you think the registers changed or something...? I heard the old DS Phat rumble doesn't work on the lite...

#130335 - spinal_cord - Sat Jun 02, 2007 10:23 am

the Phat rumble works perfectly well on the lite with commercial games, thats the one I'm using one (came free with a game). The only thing is that it doesn't detect, but setting it rummbleing works just fine. Thats why I asked if it could damage a gba game it rumble was on (physical damage to the cart).
_________________
I'm not a boring person, it's just that boring things keep happening to me.
Homepage

#130337 - NeX - Sat Jun 02, 2007 10:24 am

It's the whole GBA cart interrupt. From my experience, I have to insert the blanking cart and then the rumble.