Module dsdl2.event

Functions

NameDescription
pollEvent() Wraps SDL_PollEvent which returns the latest event in queue
pumpEvents() Wraps SDL_PumpEvents which retrieves events from input devices

Classes

NameDescription
AppDidEnterBackgroundEvent D class that wraps SDL_APP_DIDENTERBACKGROUND SDL_Events
AppDidEnterForegroundEvent D class that wraps SDL_APP_DIDENTERFOREGROUND SDL_Events
AppLowMemoryEvent D class that wraps SDL_APP_LOWMEMORY SDL_Events
AppTerminatingEvent D class that wraps SDL_APP_TERMINATING SDL_Events
AppWillEnterBackgroundEvent D class that wraps SDL_APP_WILLENTERBACKGROUND SDL_Events
AppWillEnterForegroundEvent D class that wraps SDL_APP_WILLENTERFOREGROUND SDL_Events
DisplayConnectedEvent D class that wraps SDL_DISPLAYEVENT_CONNECTED SDL_DISPLAYEVENT SDL_Events (from SDL 2.0.14)
DisplayDisconnectedEvent D class that wraps SDL_DISPLAYEVENT_DISCONNECTED SDL_DISPLAYEVENT SDL_Events (from SDL 2.0.14)
DisplayEvent D abstract class that wraps SDL_DISPLAYEVENT SDL_Events (from SDL 2.0.9)
DisplayMovedEvent D class that wraps SDL_DISPLAYEVENT_MOVED SDL_DISPLAYEVENT SDL_Events (from SDL 2.0.28)
DisplayOrientationEvent D class that wraps SDL_DISPLAYEVENT_ORIENTATION SDL_DISPLAYEVENT SDL_Events (from SDL 2.0.9)
DollarEvent D abstract class that wraps dollar gesture SDL_Events
DollarGestureEvent D class that wraps SDL_DOLLARGESTURE SDL_Events
DollarRecordEvent D class that wraps SDL_DOLLARRECORD SDL_Events
DropBeginEvent D class that wraps SDL_DROPBEGIN SDL_Events (from SDL 2.0.5)
DropCompleteEvent D class that wraps SDL_DROPCOMPLETE SDL_Events (from SDL 2.0.5)
DropEvent D abstract class that wraps drop SDL_Events
DropFileEvent D class that wraps SDL_DROPFILE SDL_Events
DropTextEvent D class that wraps SDL_DROPTEXT SDL_Events (from SDL 2.0.5)
Event D abstract class that wraps SDL_Event containing details of an event polled from dsdl2.pollEvent()
FingerDownEvent D class that wraps SDL_FINGERDOWN SDL_Events
FingerEvent D abstract class that wraps touch finger SDL_Events
FingerMotionEvent D class that wraps SDL_FINGERMOTION SDL_Events
FingerUpEvent D class that wraps SDL_FINGERUP SDL_Events
KeyboardEvent D abstract class that wraps keyboard SDL_Events
KeyDownKeyboardEvent D class that wraps SDL_KEYDOWN SDL_Events
KeymapChangedEvent D class that wraps SDL_KEYMAPCHANGED SDL_Events (from SDL 2.0.4)
KeyUpKeyboardEvent D class that wraps SDL_KEYUP SDL_Events
LocaleChangeEvent D class that wraps SDL_LOCALECHANGED SDL_Events (from SDL 2.0.14)
MouseButtonDownEvent D class that wraps SDL_MOUSEBUTTONDOWN SDL_Events
MouseButtonEvent D abstract class that wraps mouse button SDL_Events
MouseButtonUpEvent D class that wraps SDL_MOUSEBUTTONUP SDL_Events
MouseMotionEvent D class that wraps SDL_MOUSEMOTION SDL_Events
MouseWheelEvent D class that wraps SDL_MOUSEWHEEL SDL_Events
MultiGestureEvent D class that wraps SDL_MULTIGESTURE SDL_Events
QuitEvent D class that wraps SDL_QUIT SDL_Events
SysWMEvent D class that wraps SDL_SYSWMEVENT SDL_Events
TextEditingEvent D class that wraps SDL_TEXTEDITING SDL_Events
TextInputEvent D class that wraps SDL_TEXTINPUT SDL_Events
UnknownEvent D class that wraps SDL events that aren't recognized by dsdl2
WindowCloseEvent D class that wraps SDL_WINDOWEVENT_CLOSE SDL_WINDOWEVENT SDL_Events
WindowDisplayChangedEvent D class that wraps SDL_WINDOWEVENT_DISPLAY_CHANGED SDL_WINDOWEVENT SDL_Events (from SDL 2.0.18)
WindowEnterEvent D class that wraps SDL_WINDOWEVENT_ENTER SDL_WINDOWEVENT SDL_Events
WindowEvent D abstract class that wraps SDL_WINDOWEVENT SDL_Events
WindowExposedEvent D class that wraps SDL_WINDOWEVENT_EXPOSED SDL_WINDOWEVENT SDL_Events
WindowFocusGainedEvent D class that wraps SDL_WINDOWEVENT_FOCUS_GAINED SDL_WINDOWEVENT SDL_Events
WindowFocusLostEvent D class that wraps SDL_WINDOWEVENT_FOCUS_LOST SDL_WINDOWEVENT SDL_Events
WindowHiddenEvent D class that wraps SDL_WINDOWEVENT_HIDDEN SDL_WINDOWEVENT SDL_Events
WindowHitTestEvent D class that wraps SDL_WINDOWEVENT_HIT_TEST SDL_WINDOWEVENT SDL_Events (from SDL 2.0.5)
WindowICCProfileChangedEvent D class that wraps SDL_WINDOWEVENT_ICCPROF_CHANGED SDL_WINDOWEVENT SDL_Events (from SDL 2.0.18)
WindowLeaveEvent D class that wraps SDL_WINDOWEVENT_LEAVE SDL_WINDOWEVENT SDL_Events
WindowMaximizedEvent D class that wraps SDL_WINDOWEVENT_MAXIMIZED SDL_WINDOWEVENT SDL_Events
WindowMinimizedEvent D class that wraps SDL_WINDOWEVENT_MINIMIZED SDL_WINDOWEVENT SDL_Events
WindowMovedEvent D class that wraps SDL_WINDOWEVENT_MOVED SDL_WINDOWEVENT SDL_Events
WindowResizedEvent D class that wraps SDL_WINDOWEVENT_RESIZED SDL_WINDOWEVENT SDL_Events
WindowRestoredEvent D class that wraps SDL_WINDOWEVENT_RESTORED SDL_WINDOWEVENT SDL_Events
WindowShownEvent D class that wraps SDL_WINDOWEVENT_SHOWN SDL_WINDOWEVENT SDL_Events
WindowSizeChangedEvent D class that wraps SDL_WINDOWEVENT_SIZE_CHANGED SDL_WINDOWEVENT SDL_Events
WindowTakeFocusEvent D class that wraps SDL_WINDOWEVENT_TAKE_FOCUS SDL_WINDOWEVENT SDL_Events (from SDL 2.0.5)