pombreda / pgreloaded

Automatically exported from code.google.com/p/pgreloaded
Other
0 stars 0 forks source link

Scrolling (BUTTON_WHEELUP/BUTTON_WHEELDOWN) not mentioned in pygame2.sdl.event documentation. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The mouse wheel buttons (also x1, x2) are not mentioned in the event 
documentation.

Example:
pygame2.sdl.event – SDL event wrapper -> Event -> Event type -> 
MOUSEBUTTONDOWN -> "button: The pressed button (will be either BUTTON_LEFT, 
BUTTON_MIDDLE or BUTTON_RIGHT"

=> button can also be BUTTON_WHEELUP/BUTTON_WHEELDOWN/BUTTON_X1/BUTTON_X2.

In addition, the sdl.constants documentation could be improved with a clear 
distinction of constant types (eg. used for event.type, event.key, event.state, 
etc.).

Original issue reported on code.google.com by jug4andr...@googlemail.com on 7 Aug 2010 at 12:02

GoogleCodeExporter commented 9 years ago
Corrected in changeset [1289588cfc].

The sdl.constants documentation is already seperated, see 
http://wiki.pgreloaded.googlecode.com/hg/documentation/ref/pygame2_sdl_constants
.html for the online version.

If that kind of seperation is not what you meant, please provide an example of 
what you have in mind.

Original comment by marcusvonappen@googlemail.com on 7 Aug 2010 at 7:55