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 options for different Analog Stick modes #203

Merged
merged 6 commits into from
Mar 4, 2024
Merged

Conversation

thearst3rd
Copy link
Member

This removes my half-baked "ModAnalogRange" and replaces it with a better (hopefully 😄) system. The current modes are:

  • Normal - It does not modify the analog values at all.
  • Modded - This multiplies all analog values by sqrt(2) and them clamps them back into range. This feels much better than my other more complex version. There is less fine-grain control at slower speeds compared to the old method, but I think it's an improvement.
  • 8-way - This replaces all analog movement with 8 discrete pie slices which move at full speed in the 4 cardinal + 4 diagonal directions. It looks like the following chart, where different colors represent different directions.
    image

I also added in another mode, but it didn't work very well so it is not accessible through the menu. It is "Enforce Unmodded" - the theory is that it takes values and clamps it to have a maximum range of 1.0, like an original unmodded 360 controller. But when going forwards, if your aim is even slightly off of perfect, then you'll only go forwards at 99% speed. So this needs tuning before it gets fully added.

Its main flaw is that if your aim is slighty off when aiming, say, directly forwards, then you will only be going 99% forwards, limiting your speed. It is hidden in the menu for the moment
@HumanGamer HumanGamer merged commit e17b288 into master Mar 4, 2024
1 of 2 checks passed
@thearst3rd thearst3rd deleted the th3-analog branch March 6, 2024 01:22
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