Simple DirectMedia Layer is a cross-platform development library designed to provide low-level access to audio, keyboard, mouse, joystick and graphics hardware via OpenGL and Direct3D. This port is aimed at supporting legacy macOS.

WWW: https://www.libsdl.org
