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

Mact: Add single axis deadzone flag for analog stick distance calculation #848

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

Conversation

tmyqlfpir
Copy link
Contributor

@tmyqlfpir tmyqlfpir commented Sep 12, 2024

This PR adds a new flag to joysticks deadzone calculation, and helps with general analog stick movement such as the ability to walk perfectly straight when tilted fully forward on the left stick.

Originally the mact library would calculate deadzone based on the total axes input for a single analog stick instead of treating this as two independent axis for the deadzones. This is usually fine for looking left/right and up/down, however when it comes to strafing this can make it can become difficult to walk in a perfect line while also fully tilting the analog stick forward.

Here is a comparison with the setting off and on, and attempting to walk forward.

off.mp4
on.mp4

New settings for axis option menu.

Untitled

@tmyqlfpir tmyqlfpir marked this pull request as draft September 12, 2024 21:19
@CommonLoon102
Copy link
Contributor

off.mp4: Caleb drank too much wine

@tmyqlfpir tmyqlfpir changed the title Mact: Add isolated deadzone flag for analog stick distance calculation Mact: Add single axis deadzone flag for analog stick distance calculation Sep 13, 2024
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.

2 participants