We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d9e84d commit 09a0904Copy full SHA for 09a0904
docs/reST/ref/event.rst
@@ -87,6 +87,11 @@ specific attributes.
87
88
.. versionchangedold:: 2.0.1 The ``unicode`` attribute was added to ``KEYUP`` event.
89
90
+.. versionchangedold:: 2.5.7 The ``clicks`` attribute was added to ``MOUSEBUTTONDOWN`` and ``MOUSEBUTTONUP`` events.
91
+
92
+The ``clicks`` attribute of the ``MOUSEBUTTONDOWN`` and ``MOUSEBUTTONUP`` events indicate the number of clicks occurring
93
+in rapid succession, e.g. ``1`` for single-click, ``2`` for double-click, etc.
94
95
Note that ``ACTIVEEVENT``, ``VIDEORESIZE`` and ``VIDEOEXPOSE`` are considered
96
as "legacy" events, the use of pygame2 ``WINDOWEVENT`` API is recommended over
97
the use of this older API.
0 commit comments