#3545514 - 03/26/12 06:02 PM
Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
|
Joined: Feb 2000
Posts: 1,415
Beltfed
Member
|
Member
Joined: Feb 2000
Posts: 1,415
NYC, NY, USA
|
I've tried several ways but so far with no luck. I am trying to use the actual throttle action (back n forth) itself, not the buttons to use the W and S keys to move in a game that doesn't support a throttle but uses those keys to move. (world of tanks) as it is now I have the keys mapped to one of the buttons but I'd like to use the throttle itself. I think there's a way to get it to mimic a throttle using those keys but it's stumped me so far Thanks!!!
|
|
#3545515 - 03/26/12 06:02 PM
Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
[Re: Beltfed]
|
Joined: Feb 2000
Posts: 1,415
Beltfed
Member
|
Member
Joined: Feb 2000
Posts: 1,415
NYC, NY, USA
|
|
|
#3545550 - 03/26/12 06:52 PM
Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
[Re: Beltfed]
|
Joined: Dec 2010
Posts: 161
OlafM
Member
|
Member
Joined: Dec 2010
Posts: 161
|
One straightforward way to achieve this is via the CMS scripting facility: First create a map including the CMS controls. copy this into your script editor:
%define throttle js1.a3
%define forward cms.b1
%define backward cms.b2
%define dead 40
if ( [throttle + dead < 128 ] ) then
forward = true;
backward = false;
else if ( [ throttle > 128 + dead ] ) then
forward = false;
backward = true;
else
forward = false;
backward = false;
endif endif You may need to adjust the joystick number if your profile has other joysticks than the Pro Throttle. You can also increase/decrease the deadzone to your liking. To make the profile actually send the keystrokes, just program the buttons 1 and 2 of the CMS controller. Have fun!
|
|
#3545644 - 03/26/12 09:24 PM
Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
[Re: Beltfed]
|
Joined: Dec 2010
Posts: 161
OlafM
Member
|
Member
Joined: Dec 2010
Posts: 161
|
Will this work if the game does not support throttles or joy sticks? Certainly! Just select the CMS controls tab in your map, where you can assign joystick event or keypresses to the virtual CMS buttons and axes, just like the physical controls. The script I posted above just presses CMS button 1 as long as the Pro Throttle is in a forward position, and CMS button 2 as long as it is in a backward position. Now you just have to define what input events these button presses generate, with the CMS buttons instead of the physical buttons.
|
|
#3545852 - 03/27/12 07:47 AM
Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
[Re: Beltfed]
|
Joined: Dec 2010
Posts: 161
OlafM
Member
|
Member
Joined: Dec 2010
Posts: 161
|
In the control manager, you have one tab for each controller device in the map. As I understand, you had previously assigned 'W' and 'S' to certain buttons on the Pro Throttle. Now, in order to use the script, you have to do three things: - Check at which position the Pro Throttle appears in the tab bar. For example, if the Pro Throttle is on the third tab from the left, you have to replace with in the script.
- Make sure your map contains a CMS controller. If it does not, just add one.
- On the tab for the CMS controller, you will see plenty of little gray boxes, representing the (virtual) buttons and axes of the CMS controller. The only difference between the CMS controller and the Pro Throttle is, that input state of the latter is read from the actual hardware, while the input state of the former is set from a script.
- By clicking on the upper left gray box, you can define the action for the CMS Button 1, exactly as you did for the buttons of the Pro Throttle.
These things are also explained excellently and in more detail in the help file which you can access from the Control Manager (and I believe it is also available somewhere on the web).
|
|
|
|