-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Do MOUSEBUTTONUP event on MOUSEWHEEL #2242
Conversation
Tested this PR locally, and it works as expected |
Overall, this PR makes many changes to ensure that output is much more similar to pygame 1.9.6 |
@@ -157,6 +157,14 @@ _pg_remove_pending_PGS_VIDEOEXPOSE(void * userdata, SDL_Event *event) | |||
return 1; | |||
} | |||
|
|||
static int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small note: C already has a function, int abs(int n)
, defined in <stdlib.h>
, that does exactly what this function is doing (see: https://en.cppreference.com/w/c/numeric/math/abs).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm ok, I didn’t know it was there. Anyways, we can save an include by defining the function ourselves right ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also SDL_abs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks. Seems to work fine on my mac.
Probably fixes #2240