- Notifications
You must be signed in to change notification settings - Fork3.8k
Fix APPMOUSEFOCUS naming, update const values#3043
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
LGTM (hopefully nobody is already using the wrong written APPFOCUSMOUSE constant!)
ankith26 commentedFeb 24, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This event is not really documented that well, so I doubt anyone noticed this issue before. Since this is a "legacy" event, I don't think this needs elaborate documentation, people should switch to using the new |
force pushed to fix a merge conflict |
Starbuck5 commentedMar 16, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
How was there a misnamed constant? The compiler would've failed if there wasn't anything named Edit: Oh, I see them in pygame.h |
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 for this!
This seems very harmless, just patching up a potential hole for old code. Neither the incorrect or the correct name was documented, just that ACTIVEEVENT has a state attribute. And that's okay.
pygame1 compatibility fix PR. Events of type
ACTIVEEVENTmust have astateattribute which is one of the possible 3 states. These three states had different constant values in SDL1 and pygame2, and there was a misnamed constant. This PR is a quickfix for both these issues