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

removed unwrap in update_input for mouse cursor position #29

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

PatrickChodowski
Copy link
Contributor

Hey,

Firstly, thank you for this package, its awesome, functional and easy to use!

I had one thing bugging me, when I was testing joystick on my desktop using cursor, the game would panic if I accidentally put cursor outside of window. This change fixes it.

It simply doesnt update the position of the cursor if the cursor is outside and seems to be working fine after the cursor is back in window.

Copy link
Owner

@SergioRibera SergioRibera left a comment

Choose a reason for hiding this comment

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

Hey @PatrickChodowski thanks a lot for your contribution, can you fix the formatting please so I can merge it as soon as you fix it

Copy link
Owner

@SergioRibera SergioRibera left a comment

Choose a reason for hiding this comment

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

Thank you very much for the contribution, it is really something I had not checked

@SergioRibera SergioRibera merged commit 23ab888 into SergioRibera:main Jun 21, 2024
2 checks passed
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