From 6b162ade609e98d3b96c0cf663120b463e3e23a6 Mon Sep 17 00:00:00 2001 From: JorasOliveira Date: Mon, 23 Oct 2023 08:54:14 -0300 Subject: [PATCH 1/3] changed to wording in order to make it more clear --- docs/reST/ref/event.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/reST/ref/event.rst b/docs/reST/ref/event.rst index e8a30c073a..a462ff9fac 100644 --- a/docs/reST/ref/event.rst +++ b/docs/reST/ref/event.rst @@ -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. + If too many events are made a :exc:`pygame.error` is raised. From de9519dc60d8665667ee582f6c093aead38be88d Mon Sep 17 00:00:00 2001 From: JorasOliveira Date: Wed, 25 Oct 2023 07:39:52 -0300 Subject: [PATCH 2/3] implementing sugested changes --- docs/reST/ref/event.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/reST/ref/event.rst b/docs/reST/ref/event.rst index a462ff9fac..e3320633ed 100644 --- a/docs/reST/ref/event.rst +++ b/docs/reST/ref/event.rst @@ -455,8 +455,7 @@ On Android, the following events can be generated | :sl:`make custom user event type` | :sg:`custom_type() -> int` - Returns an integer value that represents a reserved ``pygame.USEREVENT`` for a custom use. - + Reserves an event slot for use in a custom event ``pygame.USEREVENT`` and returns the integer that the event slot is reserved to. If too many events are made a :exc:`pygame.error` is raised. From f257ce8d79b6b0bb76a5f0b1c06662bafe7575c4 Mon Sep 17 00:00:00 2001 From: JorasOliveira Date: Thu, 26 Oct 2023 07:49:45 -0300 Subject: [PATCH 3/3] changed pygame.USEREVENT to userevent --- docs/reST/ref/event.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reST/ref/event.rst b/docs/reST/ref/event.rst index e3320633ed..43e5936117 100644 --- a/docs/reST/ref/event.rst +++ b/docs/reST/ref/event.rst @@ -455,7 +455,7 @@ On Android, the following events can be generated | :sl:`make custom user event type` | :sg:`custom_type() -> int` - Reserves an event slot for use in a custom event ``pygame.USEREVENT`` and returns the integer that the event slot is reserved to. + Reserves an event slot for use in a custom event ``userevent`` and returns the integer that the event slot is reserved to. If too many events are made a :exc:`pygame.error` is raised.