Game Development Community

Gamepad dpad question

by Zach · in Torque Game Engine · 11/17/2006 (9:13 pm) · 1 replies

Hi everyone. I have a Logitech dual action usb gamepad that I'm experimenting with for gameplay ideas. I'm not very experienced in scripting or programming and I've hit a wall when trying to figure out a couple of things.

I've been able to map the gamepad to the actions I want in game but I'm having a problem with the directional pad and left analog stick. If I press a button on the dpad then I am unable to hit another button on the dpad until I let off of the button. This makes it impossible to move in diagonals using either the dpad or the left analog stick. Is there a way to make the buttons work like the keyboard where you could hold down forward and left and move in a diagonal?

The second issue I'm having is trying to bind the camera rotation that you would normally do with the mouse to the right analog stick. Is there a way to control the camera tilt and rotation with the right analog stick while moving the player with the left?

If anyone has any experience working with gamepads or has any bit of knowledge to help me with these two things I would really appreciate it.

(I posted this in the private forums because I wasn't sure if any code changes were needed. I haven't explored these issues in the c++ yet but was hoping I could accomplish these things in script.)

#1
11/18/2006 (9:53 am)
Thought I would bump this in case anyone who has experience with gamepads could help me out.