Forums » Technology » Flight Sim Controllers » Control Manager (CH Products) » Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) Active Topics You are not logged in. [Log In] [Register User]
Topic Options
Rate This Topic
Hop to:
#3545514 - 03/26/12 02:02 PM Hey there! How does one program the pro throttle to use W and S as back and forth? (USB)
Beltfed Offline
Member

Registered: 02/29/00
Posts: 1409
Loc: 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 smile

Thanks!!!
_________________________
Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com


Top
#3545515 - 03/26/12 02:02 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
Beltfed Offline
Member

Registered: 02/29/00
Posts: 1409
Loc: NYC, NY, USA
pre bump!
_________________________
Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com

Top

#3545550 - 03/26/12 02:52 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
OlafM Offline
Member

Registered: 12/07/10
Posts: 140
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:
Code:
%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!

Top
#3545584 - 03/26/12 03:58 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
Beltfed Offline
Member

Registered: 02/29/00
Posts: 1409
Loc: NYC, NY, USA
Thanx for the info!

Will this work if the game does not support throttles or joy sticks? WoT uses the standard shooter W A S D keys fer movement and no joystick or any kind of controller.
_________________________
Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com

Top
#3545644 - 03/26/12 05:24 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
OlafM Offline
Member

Registered: 12/07/10
Posts: 140
Originally Posted By: Beltfed
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.

Top
#3545754 - 03/26/12 09:17 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
Beltfed Offline
Member

Registered: 02/29/00
Posts: 1409
Loc: NYC, NY, USA
OK um uh so uh how does one um do this smile

I put the CMS editor on and pasted the code there and then I blinked and went huh? smile
_________________________
Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com

Top
#3545852 - 03/27/12 03:47 AM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
OlafM Offline
Member

Registered: 12/07/10
Posts: 140
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
    Code:
    js1
    with
    Code:
    js3
    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).

Top
#3546670 - 03/28/12 01:39 PM Re: Hey there! How does one program the pro throttle to use W and S as back and forth? (USB) [Re: Beltfed]
Beltfed Offline
Member

Registered: 02/29/00
Posts: 1409
Loc: NYC, NY, USA
Thanx Olaf!!

It's still not clear but that's cuz I am not that bright and not because yer explanations were unclear. Thanks much for the help and time smile
_________________________
Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com

Top
Topic Options
Rate This Topic
Hop to:

Moderator:  531 Ghost, RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.