Git Product home page Git Product logo

x2dcli's Introduction

X2DCLI

Xinput to DirectInput

by Beterhans ([email protected])

Latest version data: Oct 12 2018

Download Link (Releases) https://github.com/beterhans/x2dcli/releases

Video DEMO on Youtube

https://www.youtube.com/watch?v=UERyvjPWFsQ

or if you inside THE Great Firewall of China

https://www.bilibili.com/video/av9315491

This console app aims to fix the z-axis problem for the Xbox 360 controller on old Windows games (should also work with Xbox One controllers).

Background

The Xbox360 controller come with 2 sets of API can be used by a Game. Xinput (the new one) which don't have z-axis problem. Direct Input (the old one) which have z-axis problem. And OLD Game Can't use new Xinput since they are old.

The z-axis problem is the problem that the driver treat left right trigger as a single z-axis. make you unable to press them simultaneously. This is unacceptable if you want to play racing game well. And this is intentional by Microsoft. so they knew it and won't fix it.

Solution

x2dcli translates the new Xinput's trigger data to a virtual old Directinput gamepad with 2 axes (one per trigger). All other buttons/axes are not translated.

Installation

X2DCLI is portable. no install is needed. but it's just part of the sulution. So.

  1. Make sure you have DirectX fully installed. If you are not sure about it run DirectX setup again. https://www.microsoft.com/en-us/download/details.aspx?id=35
  2. go to http://vjoystick.sourceforge.net/site/index.php/download-a-install/download download a virtual joysitck named vJoy.
  3. install vjoy
  4. config a vjoy device with 2 silders. (no button or other axis is needed you can delete them.) remember the vjoy device ID.
  5. plug in Xbox360 controller.
  6. run this X2DCLI
  7. answer question and run.

Known issues and workarounds

While you have your X2DCLI running, if you press triggers actually the vjoy is moving and the old z-axis are also moving! This makes games confused when you want to assign key to a function. So I provided a mode that X2DCLI will press the left or right trigger for you, without you pressing the real controller. To activate these modes, answer runmode as 1 or 2. Sometimes the game will take the axis inverted (press is no gas, no press is gas). If you found the axis is inverted try re-assign again make sure this time the direction is different.

Donate

Please donate me if you like this little app. Paypal: [email protected]

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.