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

Input: Implement pressure sensitivity deadzone #14557

Merged
merged 2 commits into from
Aug 26, 2023

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Aug 26, 2023

Some users have to map axes to their d-pad or buttons, which may lead to slightly pressed buttons
depending on their controllers' or handlers' intrinsic deadzones.
Similarly, some users have issues with old DualShock3 controllers that have "sticky buttons".

Therefore it seems like a good idea to allow users to apply a generic pressure sensitivity deadzone.
Values below the deadzone will be treated as not pressed and set to 0.
Values above the deadzone will be treated as pressed adjusted to the remaining range, similar to the existing trigger deadzones.
The triggers themselves will still use their own deadzones exclusively.

The pressure sensitivity button will be unaffected by this.

image

Implements a fix for #14530

If you called this function with a value smaller than threshold, you
would get an overflow. This never happened, because we always passed
values bigger than threshold. Let's better fix this anyway.
@Megamouse Megamouse merged commit b248483 into RPCS3:master Aug 26, 2023
5 checks passed
@Megamouse Megamouse deleted the pressure branch August 26, 2023 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant