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

ControllerEmu: Improve and simplify UpdateCalibrationData. #9096

Merged
merged 1 commit into from Oct 20, 2020

Conversation

jordan-woyak
Copy link
Member

Previously, the closest (by angle) calibration point was set to the distance of the provided input.
This produced slightly wrong calibration that would even draw outside of indicator square.
Clamping was done which hid the problem.

Now calibration is calculated from intersection with a line segment of the last two input values.
This is cleaner and more accurate.
Also the calibration shape is no longer restricted to a convex polygon.

@leoetlino leoetlino merged commit 9117046 into dolphin-emu:master Oct 20, 2020
10 checks passed
@jordan-woyak jordan-woyak deleted the calibration-cleanup branch October 20, 2020 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants