Skip to content

Change mouse.get_(pos|rel) to output floats #2429

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

Closed

Conversation

Starbuck5
Copy link
Member

@Starbuck5 Starbuck5 commented Aug 29, 2023

In SDL3, the underlying APIs give us floats. So we should get ready to return those numbers.

I attempted to preserve itzprs speedups by making a float variant of the int tuple packer. I have not run performance tests.

In SDL3, the underlying APIs give us floats. So we should get ready to return those numbers.
@Starbuck5 Starbuck5 requested a review from a team as a code owner August 29, 2023 08:05
@Starbuck5 Starbuck5 added Code quality/robustness Code quality and resilience to changes mouse pygame.mouse labels Aug 29, 2023
Copy link
Member

@ankith26 ankith26 left a comment

Choose a reason for hiding this comment

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

Alternate idea - Make the function take a kwarg and decide based on that?

removes breaks/disruption but slightly less elegant

@Starbuck5
Copy link
Member Author

Closing to wait on this.

@Starbuck5 Starbuck5 closed this Sep 5, 2023
@Starbuck5 Starbuck5 deleted the mouse-functions-float branch September 5, 2023 07:31
@MyreMylar MyreMylar added this to the 3.0.0 milestone Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code quality/robustness Code quality and resilience to changes mouse pygame.mouse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants