Pro 1.1.0: Control Pad input no longer works!?
by Leroy Frederick · in Torque Game Builder · 06/26/2006 (9:19 am) · 0 replies
Has any1 got pad input working with the latest version cause i can't!?
If you can, please share your wisdom :) Thanks in advance
moveMap.bind(joystick0, "yaxis", playerUpDown);
moveMap.bind(joystick0, "xaxis", playerLeftRight);
//REM Pad Input movement
function playerLeftRight(%val)
{
player.moveLeft = false; player.moveRight = false; player.updateMovement();
if (%val $= -1)
{
player.moveLeft = true; player.updateMovement();
error(" Left=",%val);
}
if (%val $= 1)
{
player.moveRight = true; player.updateMovement();
error(" Right=",%val);
}
}
function playeUpDown(%val)
{
player.moveUp = false; player.moveDown = false; player.updateMovement();
if (%val $= -1)
{
player.moveUp = true; player.updateMovement();
error(" Up=",%val);
}
if (%val $= 1)
{
player.moveDown = true; player.updateMovement();
error(" Down=",%val);
}
}If you can, please share your wisdom :) Thanks in advance