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
Removed warnings by explicitly casting to u8 for controllers
#803
Removed warnings by explicitly casting to u8 for controllers
#803
Conversation
|
Is there anything preventing this from being merged? |
|
Oh sorry about that. This looks fine. |
|
It's no problem. |
Removed warnings by explicitly casting to `u8` for controllers
|
This change causes the Android joysticks to not register anything outside of the top right corner, on-screen or mapped. This does not affect the desktop builds. Didn't really have time to do anything about it, just reporting it ATM. |
| pad->stickX = GCPadStatus::MAIN_STICK_CENTER_X + (x * GCPadStatus::MAIN_STICK_RADIUS); | ||
| pad->stickY = GCPadStatus::MAIN_STICK_CENTER_Y + (y * GCPadStatus::MAIN_STICK_RADIUS); | ||
| pad->stickX = GCPadStatus::MAIN_STICK_CENTER_X + (u8)(x * GCPadStatus::MAIN_STICK_RADIUS); | ||
| pad->stickY = GCPadStatus::MAIN_STICK_CENTER_Y + (u8)(y * GCPadStatus::MAIN_STICK_RADIUS); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
I think this would be a great candidate for C++ casts...it would remove all ambiguity from what is being casted. |
|
Agreed |
|
Alright, I've submitted a PR that should fix these bugs. Apologies for introducing them, |
No description provided.