Joystick
by Albert Steckenborn · in Torque Game Engine Advanced · 10/07/2006 (9:05 am) · 2 replies
Hi,
i want to use a joystick to control an airplane but i don't get it to work.
I always get the followong message in console.log
----> DirectInput joystick failed to enable! <-----
I use the followong code to configure the joystick axes:
Any Ideas where i can search for this error ?
THX
i want to use a joystick to control an airplane but i don't get it to work.
I always get the followong message in console.log
----> DirectInput joystick failed to enable! <-----
I use the followong code to configure the joystick axes:
vehicleDriverMap.bind( joystick, xaxis, yaw ); vehicleDriverMap.bind( joystick, yaxis, pitch );
Any Ideas where i can search for this error ?
THX
#2
To make double sure its enabled you can run the command "enableJoystick" in the console.
It should say something if it enables it ("DirectInput joystick enabled.")
To make it enable it by default is a bit of a struggle, or at least it was last time I tried it. The first thing to try is to set "$pref::Input::JoystickEnabled" to 1 in all of the prefs.cs files that have it in there. The only one you really need to change, and the one which you might want to add it to if it's not there, is the one in the client folder of the active game/mod you are running TGE with.
10/14/2006 (1:55 pm)
Are you sure the joystick is even activated? I think by default in TGE/TSE it is often not.To make double sure its enabled you can run the command "enableJoystick" in the console.
It should say something if it enables it ("DirectInput joystick enabled.")
To make it enable it by default is a bit of a struggle, or at least it was last time I tried it. The first thing to try is to set "$pref::Input::JoystickEnabled" to 1 in all of the prefs.cs files that have it in there. The only one you really need to change, and the one which you might want to add it to if it's not there, is the one in the client folder of the active game/mod you are running TGE with.
Torque Owner Albert Steckenborn
Default Studio Name