Removes the cursor from view when on the game's window.

This commit is contained in:
Vinícius R. Miguel 2020-05-08 04:36:17 -03:00 committed by GitHub
parent c30450a1d2
commit 9cfee50bbe
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ const SDL_Scancode scancode_rmapping_nonextended[][2] = {
static void gfx_sdl_init(void) {
SDL_Init(SDL_INIT_VIDEO);
SDL_ShowCursor(SDL_DISABLE); // Removes the cursor from view when upon the game's window.
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);