Game Development Community

Problem with Joystick moving on its own...

by Nicolai Dutka · in Torque Game Engine Advanced · 07/23/2009 (12:32 pm) · 1 replies

I've got my joystick setup and mostly working using a previous game. In the previous game, it was working 100% perfectly. I double checked, and it is fine.

In this new game.. I barely tap ANY button and my camera and the player both start moving by themselves. The movement is slow, but cannot be stopped. It seems like it's not registering the deadzone at all which I assume is what makes the movement stop..

Any ideas?


EDIT: Forgot to mention, I am using a Logitech Rumblepad 2. The previous game that it is currently working in was using TGEA 1.7.0 and now I am using TGEA 1.8.1.

#1
07/23/2009 (2:03 pm)
Got it!!

moveMap.bind( joystick0, xaxis, "D", "-0.23 0.23", gamePadMoveX );
    moveMap.bind( joystick0, yaxis, "D", "-0.23 0.23", gamePadMoveY );
    moveMap.bind( joystick0, zaxis, "D", "-0.23 0.23", gamePadYaw );
    moveMap.bind( joystick0, rzaxis, "D", "-0.23 0.23", gamePadPitch );

Had the values backwards!

"0.23 -0.23"