English 中文(简体)
Pygame - Event objects
  • 时间:2024-12-22

Pygame - Event Objects


Previous Page Next Page  

All events are instances of pygame.event.EventType class. Pygame identifies following event types −

Event Type attributes
QUIT None
ACTIVEEVENT gain, state
KEYDOWN unicode, key, mod
KEYUP key, mod
MOUSEMOTION pos, rel, buttons
MOUSEBUTTONUP pos, button
MOUSEBUTTONDOWN pos, button
JOYAXISMOTION joy, axis, value
JOYBALLMOTION joy, ball, rel
JOYHATMOTION joy, hat, value
JOYBUTTONUP joy, button
JOYBUTTONDOWN joy, button
VIDEORESIZE size, w, h
VIDEOEXPOSE None
USEREVENT Code
Advertisements