PySDL2 is a Python wrapper around version 2.0 of the cross-platform multimedia library SDL. PySDL2 is designed to provide Python code with low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
PySDL2 is a Python wrapper around version 2.0 of the cross-platform multimedia library SDL. PySDL2 is designed to provide Python code with low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
PySDL2 has been released as public domain work, and thus has no licensing restrictions. It does not rely on any additional C code, choosing to wrap the SDL 2.0 library using the ctypes Python module.
PySDL2 also offers support for the following SDL-related libraries:
- SDL2_image (https://www.libsdl.org/projects/SDL_image/)
- SDL2_mixer (https://www.libsdl.org/projects/SDL_mixer/)
- SDL2_ttf (https://www.libsdl.org/projects/SDL_ttf/)
- SDL2_gfx (http://www.ferzkopp.net/Software/SDL_gfx-2.0/)
Useful Links
- Source Code Repository: https://github.com/marcusva/py-sdl2
- Documentation: https://pysdl2.readthedocs.io/