Handle a single SDL_Event.
Translate an SDL button index to a MouseButton.
Translate an SDL buttons mask to a MouseButtons.
Highest SDL_BUTTON constant.
Run the main loop.
Set window title.
Request the event loop to stop. May be called from another thread.
Wake event thread with a no-op event.
Video implementation.
Audio implementation.
Shell implementation using SDL2.