Skip to content

Mact: Rewrite axis analog stick support#916

Open
tmyqlfpir wants to merge 10 commits intoNBlood:masterfrom
tmyqlfpir:mact-rework
Open

Mact: Rewrite axis analog stick support#916
tmyqlfpir wants to merge 10 commits intoNBlood:masterfrom
tmyqlfpir:mact-rework

Conversation

@tmyqlfpir
Copy link
Collaborator

@tmyqlfpir tmyqlfpir commented May 16, 2025

This PR is a follow up to #848 as per TerminX's request for additional settings for analog stick support.

It does the follow changes:

  • Use floating point for calculating saturating and exponent
  • Adds a new setting called 'snap zone' which controls the 'bowtie' deadzone when leaning towards an axis (as penned in this 2013 article)
  • Adds a new function to Mact to visualize the deadzone/snapzone/saturation scale to a given tile pointer

The new code comes from the above article and uses this article (web demo here) as a reference for the math formula for the scaled axis deadzone.

image

@tmyqlfpir tmyqlfpir marked this pull request as draft May 16, 2025 08:19
@tmyqlfpir tmyqlfpir force-pushed the mact-rework branch 2 times, most recently from c9e023c to fb0ccdf Compare May 16, 2025 15:14
@tmyqlfpir tmyqlfpir marked this pull request as ready for review May 16, 2025 15:43
@tmyqlfpir tmyqlfpir changed the title Mact: Rewrite twin axis analog stick support Mact: Rewrite axis analog stick support May 21, 2025
@tmyqlfpir tmyqlfpir marked this pull request as draft May 21, 2025 23:41
@tmyqlfpir tmyqlfpir marked this pull request as ready for review May 22, 2025 16:14
@tmyqlfpir tmyqlfpir force-pushed the mact-rework branch 5 times, most recently from 5916cb4 to a57bc83 Compare June 13, 2025 19:25
@tmyqlfpir tmyqlfpir force-pushed the mact-rework branch 2 times, most recently from 3bf5f7e to 1040a05 Compare June 17, 2025 00:07
@tmyqlfpir tmyqlfpir force-pushed the mact-rework branch 2 times, most recently from 70e8676 to 6cf765c Compare June 18, 2025 05:26
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.

1 participant