Skip to content

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

Closed
tmyqlfpir wants to merge 4 commits into
NBlood:masterfrom
tmyqlfpir:isolated-deadzone
Closed

tmyqlfpir wants to merge 4 commits into
NBlood:masterfrom
tmyqlfpir:isolated-deadzone

Conversation

@tmyqlfpir

@tmyqlfpir tmyqlfpir commented Sep 12, 2024

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
@tmyqlfpir
tmyqlfpir marked this pull request as ready for review September 13, 2024 02:48
@Hendricks266
Hendricks266 self-requested a review April 19, 2025 00:59
@Hendricks266

Copy link
Copy Markdown
Member

I like "Decoupled Axes" as the name for this.

@tmyqlfpir
tmyqlfpir force-pushed the isolated-deadzone branch from 1603bbc to d1e9cb9 Compare May 13, 2025 09:05
@tmyqlfpir
tmyqlfpir force-pushed the isolated-deadzone branch from d1e9cb9 to 1f163c5 Compare May 13, 2025 12:09
@tmyqlfpir
tmyqlfpir marked this pull request as draft May 15, 2025 00:59
@tmyqlfpir
tmyqlfpir marked this pull request as ready for review May 15, 2025 09:02
@tmyqlfpir
tmyqlfpir marked this pull request as draft May 15, 2025 10:52
@tmyqlfpir tmyqlfpir closed this May 15, 2025
@tmyqlfpir
tmyqlfpir deleted the isolated-deadzone branch May 16, 2025 00:16
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.

3 participants