Attribute | Event type | Description |
time | All events | Time of occurrence of the event, in milliseconds since pygame.init() was called. |
local | Mouse events | Position of the mouse in the local coordinate system of the widget to which it is delivered. |
ray | OpenGL mouse events | A pair of points representing the projection of the mouse position onto the near and far clipping planes. |
shift | True if one of the Shift keys is down. |
ctrl | True if the Control key is down. |
alt | True if the Alt key (Option key on Macintosh) is down. |
meta | True if the Meta key (Command key on Macintosh, Windows key on PC keyboards) is down. |
cmd | True if either the Control or Meta key is down. This can be used to implement command keys that work according to either Macintosh or Linux/Windows conventions. |