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

Android: Fix controller float sliders crashing #12151

Merged
merged 2 commits into from Sep 3, 2023

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Sep 2, 2023

By not setting a stepSize, stepSize was getting set to the default value of 0, which is an Int. This later caused a crash when trying to cast it to Float.

By not setting a stepSize, stepSize was getting set to the default
value of 0, which is an Int. This later caused a crash when trying to
cast it to Float.
This makes casting unnecessary, preventing the kind of type error we
just had from occurring in the future.
Copy link
Contributor

@t895 t895 left a comment

Choose a reason for hiding this comment

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

LGTM other than one minor comment

@JosJuice JosJuice merged commit 57b1bd2 into dolphin-emu:master Sep 3, 2023
11 checks passed
@JosJuice JosJuice deleted the android-controller-float branch September 3, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants