Giter VIP home page Giter VIP logo

thrustmastertargetscripting's Introduction

ThrustmasterTARGETScripting

Sample script for Thrustmaster TARGET scripting in order to setup a single combined axis when using the toe brakes.

This script can be configured in a single file:

combined_pedals_settings.tmh

Settings:

  • Mode of combination
  • Merge: The axis value will be the difference between left toe and right toe
  • Greatest: The axis value will be the greatest value of both left and right toe

Change the value of CombinePedalsMode to the one of your choice or uncomment / comment the premade definitions

  • Virtual Axis to use: Change the value of CombinePedalsAxis define to the one of your choice. By default it will use DX_SLIDER_AXIS

  • Disable toes: If you have mapped the toes to other axis (i.e. DX_XROT_AXIS or DX_YROT_AXIS) because you wanted to apply some curves, disable their default input with 1.

This also will prevent to publish the Thrustmaster Rudder Pedals once launching the script. If you leave the default 0, your game will see both the virtual controller (and combined axis) as well as the physical controller.

DISCLAIMER You cannot see the vcontroller on the 'Device Analyzer' while using the mode MODE_KEEPENABLED. Use ComboPedalsDebug on the 'combined_pedals_macros.ttm' file to debug with the device analyzer.

  • Setup curves for your brake toes with SetJCurve to apply it before calculations. It allows you have the brake toes with higher sensitive close to deadzone, for example.

FIRST TIME SETUP

Enable ComboPedalsDebug to be able to see the vcontroller on windows 10. Else if you have finished setup (see bellow) and you want to publish your TRUDDER to your game as well as the combined pedals, it won't work

To map your single pedals instead of the virtual ones to anygame if you have not published axis for them with MapAxis You will need to setup them first without this script.

Configure this script to ConfigureStandAlone on settings:

  • 1.- Launch the script and your Game
  • 2- Set up your pedals
  • 3.- Close the game and stop the script
  • 4.- Setup this script to ConfigureCombo on settings
  • 5.- Launch the script and your Game
  • 6.- Setup the combined Axis
  • 7.- Close the game and delete the ComboPedalsConfigureStandAlone and ComboPedalsConfigureCombo or alternatively, uncommnent the ComboPedalsConfigured setting on settings
  • 8.- Launch the script and the Game
  • 9.- Enjoy!

thrustmastertargetscripting's People

Contributors

tarodbofh avatar

Stargazers

 avatar  avatar Aussiedroid avatar  avatar

Watchers

 avatar  avatar

thrustmastertargetscripting's Issues

Allow a modifier (shift key) to setup game(s) without reloading script

Setup a modifier or layer to allow in-game configuration without the need to exit and edit the script. The layer(s) disables input on the virtual axis to allow for game setup of physical one.

@todo: Think how to do the same with the physical one (note: can we just add a huge deadzone with a shift key?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.