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

InputCommon/DolphinQt: Mapping related race fixes and cleanups. #8643

Merged
merged 7 commits into from
Feb 25, 2020

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Feb 23, 2020

Eliminate racy UpdateInput call within DetectInput.
(HotkeyManager/Core will already be doing this)

Split separate mapping indicator types into their own classes.

The "Point" indicator now uses the entire bounding box for drawing the "red dot".
The reduced box seemed to confuse some people into thinking it needed some kind of calibration.
image

Ensure the "state lock" is held when updating indicators.
Previously it was not held on a redraw invoked from Qt.

Cleaned up indicator code to eliminate some redundant logic and scalar multiplication all over the place.

Minor change to indicator colors for better contrast on some dark themes.
image

Copy link
Contributor

@spycrab spycrab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spycrab spycrab merged commit 459b472 into dolphin-emu:master Feb 25, 2020
@jordan-woyak jordan-woyak deleted the mapping-race-fix branch February 25, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants