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

Add variable deadzones to the gamepad extension #1011

Closed
Meehdrescher opened this issue Sep 4, 2023 · 3 comments · Fixed by #1280
Closed

Add variable deadzones to the gamepad extension #1011

Meehdrescher opened this issue Sep 4, 2023 · 3 comments · Fixed by #1280

Comments

@Meehdrescher
Copy link

When trying to make steering wheel support for a racing game, I ran into the problem that the axis have a 10% deadzone which is set by a constant value in the extension.
This is not very convenient as 10% of 900° of steering angle amount to 90°, meaning that a steering wheel user would have to turn the steering wheel 45° in each direction in order for something to happen.
I patched the extension to include two more blocks, allowing the user to freely choose the deadzone of axis and buttons.
(Essentially, I don't know how GitHub works so I'll just drop it here)

gamepad.txt

@DNin01
Copy link
Contributor

DNin01 commented Sep 5, 2023

Cool!

There are some contributing guidelines to help you learn more about submitting your extensions.

To propose these in a pull request, I'll make a list of steps for you to follow, which you can do on the website:

  1. Fork the repository
  2. Create a branch for your pull request
  3. Make your changes
  4. Open a pull request (you'll see a notification if you click the Code tab again)

Though, to make things easier in the future with more complex changes, you can use Git to make changes.

Good luck!

@Drago-Cuven
Copy link

hold on. 2 thing i'd suggest. deadzone reporters to go with it, and combining this with #881

@Meehdrescher
Copy link
Author

Meehdrescher commented Sep 7, 2023 via email

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