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

joystick deadzone #257

Merged
merged 2 commits into from
May 24, 2024
Merged

joystick deadzone #257

merged 2 commits into from
May 24, 2024

Conversation

GabrielCNoble
Copy link
Contributor

@GabrielCNoble GabrielCNoble commented May 24, 2024

Simple deadzone applied to each axis separately. The deadzone is essentially a box. The value of each axis is re-scaled so it's 0 at the deadzone and 1 at the end of travel.

I think ideally the deadzone should be a circle. I tried that but I realized my controller would be maxed out on one axis and still output a non-zero value on another, so I couldn't use trig to compute the proper deadzone values for each axis. And this will likely change from controller to controller, so I think for this to work properly it'd be necessary to have something similar to Dolphin's deadzone thingamajig.

@Mr-Wiseguy Mr-Wiseguy changed the base branch from dev to feat/analog-cam May 24, 2024 20:14
@Mr-Wiseguy
Copy link
Member

Mr-Wiseguy commented May 24, 2024

Looks like the PR will have to be rebased for CI to pass. I've also retargeted the PR to a branch since there are a few more changes to make for keyboard/controller navigation to work correctly with this new option, so I'll take care of those in the branch once it's merged.

@GabrielCNoble
Copy link
Contributor Author

GabrielCNoble commented May 24, 2024

I may be having some issues with the rebase.

Just to make sure I understood correctly, I need to rebase to feat/analog-cam, right? Because I didn't even do that yet. Those checks were triggered after I clicked on the sync fork button.

@Mr-Wiseguy Mr-Wiseguy merged commit 1a4bf35 into Zelda64Recomp:feat/analog-cam May 24, 2024
5 checks passed
@Mr-Wiseguy
Copy link
Member

Thanks for the contribution!

Mr-Wiseguy pushed a commit that referenced this pull request May 26, 2024
Mr-Wiseguy pushed a commit that referenced this pull request May 26, 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