-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Clarify event.custom_type
docs
#2527
Conversation
The issue this is meant to address for convenience of reviewers: #1758 |
docs/reST/ref/event.rst
Outdated
@@ -455,7 +455,8 @@ On Android, the following events can be generated | |||
| :sl:`make custom user event type` | |||
| :sg:`custom_type() -> int` | |||
|
|||
Reserves a ``pygame.USEREVENT`` for a custom use. | |||
Returns an integer value that represents a reserved ``pygame.USEREVENT`` for a custom use. |
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.
Hmmmmm, this doesn't really seem any clearer IMO. Maybe something alone the lines of
"Reserves an event slot for use in a custom event (pygame.USEREVENT
) and returns the integer that the event slot is reserved to"
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.
I think @oddbookworm solution is easier to understand.
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 👍
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, thanks for the PR 🎉
event.custom_type
docs
I tried to keep in mind the original suggestion made by @Felix3qH4 and the correction made by @oddbookworm. Hopefully the behaviour of pygame.event.custom_type() is clearer now.