Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#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 Offline
Member
Beltfed  Offline
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 smile

Thanks!!!


Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com
Inline advert (2nd and 3rd post)

#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 Offline
Member
Beltfed  Offline
Member

Joined: Feb 2000
Posts: 1,415
NYC, NY, USA
pre bump!


Tim "Beltfed" Harrison
NCOIC,
718th TFW,
SkyScrapers
http://www.718tfw.com
#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 Offline
Member
OlafM  Offline
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:
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!

#3545584 - 03/26/12 07:58 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 Offline
Member
Beltfed  Offline
Member

Joined: Feb 2000
Posts: 1,415
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
#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 Offline
Member
OlafM  Offline
Member

Joined: Dec 2010
Posts: 161
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.

#3545754 - 03/27/12 01:17 AM 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 Offline
Member
Beltfed  Offline
Member

Joined: Feb 2000
Posts: 1,415
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
#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 Offline
Member
OlafM  Offline
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
    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).

#3546670 - 03/28/12 05:39 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 Offline
Member
Beltfed  Offline
Member

Joined: Feb 2000
Posts: 1,415
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

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Carnival Cruise Ship Fire....... Again
by F4UDash4. 03/26/24 05:58 PM
Baltimore Bridge Collapse
by F4UDash4. 03/26/24 05:51 PM
The Oldest WWII Veterans
by F4UDash4. 03/24/24 09:21 PM
They got fired after this.
by Wigean. 03/20/24 08:19 PM
Grown ups joke time
by NoFlyBoy. 03/18/24 10:34 PM
Anyone Heard from Nimits?
by F4UDash4. 03/18/24 10:01 PM
RIP Gemini/Apollo astronaut Tom Stafford
by semmern. 03/18/24 02:14 PM
10 years after 3/8/2014
by NoFlyBoy. 03/17/24 10:25 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0