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

hack: cp inputMouseGetScaled -> inputMouseGetScaledDeltaAbsSens for intuitive amenu UX while using aim inversion #188

Merged
merged 2 commits into from
Sep 30, 2023

Conversation

cylonicboom
Copy link

I prefer to play shooters with Y-inverted stick controls and normal-Y mouse controls.

When the stick is inverted, I need to invert the mouse controls to achieve "normal Y movement" with the mouse. Even still, the active menu inputs with the mouse are inverted.

This is hacky but fixes this issue without adding an extra parameter/using a wrapper.

@cylonicboom cylonicboom changed the title hack: cp inputMouseGetScaledDeltaAbsSens for ammenu hack: cp inputMouseGetScaledDeltaAbsSens for ammenu UX Sep 29, 2023
@cylonicboom cylonicboom changed the title hack: cp inputMouseGetScaledDeltaAbsSens for ammenu UX hack: cp inputMouseGetScaled -> inputMouseGetScaledDeltaAbsSens for intuitive ammenu UX while using aim inversion Sep 29, 2023
@cylonicboom cylonicboom changed the title hack: cp inputMouseGetScaled -> inputMouseGetScaledDeltaAbsSens for intuitive ammenu UX while using aim inversion hack: cp inputMouseGetScaled -> inputMouseGetScaledDeltaAbsSens for intuitive amenu UX while using aim inversion Sep 29, 2023
@fgsfdsfgs
Copy link
Owner

abs is the integer variant. Use fabsf for floats if you don't want sensitivity to be silently converted to int.

@cylonicboom
Copy link
Author

cylonicboom commented Sep 30, 2023

abs is the integer variant. Use fabsf for floats if you don't want sensitivity to be silently converted to int.

Oops. And done.

Also I suppose this PR would be useful for anyone implementing #187

@fgsfdsfgs fgsfdsfgs merged commit 608b02d into fgsfdsfgs:port Sep 30, 2023
2 checks passed
@cylonicboom cylonicboom deleted the ammenu-abs branch November 12, 2023 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants