-
Notifications
You must be signed in to change notification settings - Fork 0
Device
Description of the Device
manager.
This creates a new window with an OpenGL context. It allows to set the window title, the resolution and whether it runs windowed or in fullscreen. The Operating System mouse cursor gets hidden. The Device
contains the Inputs
manager which is responsible for polling user inputs.
The Inputs
manager binds each user input with a command string. It stores bindings for: key press, key release, while is key pressed, mouse button press, mouse button release, while is mouse button pressed and mouse motion. Whenever the specified event occurs, the bound command will be pushed to the Terminal
's queue of commands.
It calls the SDL_Init
function with an OpenGL context, sets some of the OpenGL attributes and then creates a video context window.
It only calls the SDL_Quit
function.