Game Development Community

Joystick input not working

by Conor O Kane · in Torque Game Builder · 03/31/2007 (8:23 am) · 0 replies

Hello I'm a new user of TGB, I've just completed the tutorials and am trying out my first game.

I'm trying to use joystick input in my game and I thought it would be a simple matter of replacing

moveMap.bindCmd(keyboard, "w", "$pShip.playerMovement(up);", "$pShip.playerMovement(stopUp);");

with

moveMap.bindCmd(joystick, "upov", "$pShip.playerMovement(up);", "$pShip.playerMovement(stopUp);");

I'm using a PC gamepad (actually it's an xbox controller with a USB adapter) so the POV hat is the direction pad, and upov should be the up button.

And while I'm asking complete n00b questions - where is the forum's search function and 'preview post' button?