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

DirectInput: Use more than 8 bits of precision on axis inputs. #7680

Merged
merged 1 commit into from Jan 16, 2019

Conversation

jordan-woyak
Copy link
Member

@jordan-woyak jordan-woyak commented Jan 6, 2019

DirectInput will now try to use 16 bit precision on axis inputs.
While the gamecube controller sticks we emulate are only 8 bit, things like Wiimote tilt and IR cursor inputs have more precision.
Plus we are applying dead zones and all sorts of math before chopping it down to 8 bits so we might as well grab more if it's available.

@BhaaLseN
Copy link
Member

BhaaLseN commented Jan 6, 2019

Is there any need for value clamping (or scaling) when doing this?

@jordan-woyak
Copy link
Member Author

@BhaaLseN No. The code inside the Axis class already normalizes between 0.0 and 1.0.
This just tries to set a more sensible range to get from direct input.

@ghost

This comment has been minimized.

@leoetlino leoetlino merged commit b2de98c into dolphin-emu:master Jan 16, 2019
@jordan-woyak jordan-woyak deleted the dinput-axis-range branch January 20, 2019 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants