Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for controllers + default bindings #374

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

5614037u
Copy link

What?

I have added XInput support to the project as well as basic controller bindings within the simulator. This feature was requested in issue #340.

Why?

To model more of the analog nature of car inputs is why I believe it fits into the project. The use of joystick inputs allows for higher precision and makes the simulator more life-like.

How?

By adding support/overhead for XInput, Xbox controllers are natively supported. With a controller emulator, you can map any controller to emulate an Xbox controller such as ps4, ps5 etc. This is all held within the joystick.h and joystick.cpp files.

Testing?

I have tested the current bindings with an Xbox 360 wireless controller. This should work with all Xbox controllers natively. Other controllers may require an emulator such as DS4 windows.

Anything Else?

The current bindings are as follows.

  • Throttle: Right Trigger
  • Clutch: Left Trigger
  • Gear Up: Right Shoulder Bumper
  • Gear Down: Left Shoulder Bumper
  • Ignition: Y
  • Starter: X
  • Hold: A
  • Dyno: B

NOTE: The keyboard bindings still work as usual.

Copy link

@Carguy2538 Carguy2538 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve of this. would be great! no issues!

@Carguy2538
Copy link

how do you download

@dinkuu
Copy link

dinkuu commented Sep 20, 2023

how do i add this into the simulator ?

@External316
Copy link

Could you please provide a download or at least tell us how to manually package and build an EXE file that will work with this controller mod? I really want to use my Xbox controller for this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants