summaryrefslogtreecommitdiffhomepage
path: root/src/platforms/rcore_desktop_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/rcore_desktop_sdl.c')
-rw-r--r--src/platforms/rcore_desktop_sdl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c
index b6472433..c57a94fe 100644
--- a/src/platforms/rcore_desktop_sdl.c
+++ b/src/platforms/rcore_desktop_sdl.c
@@ -1070,7 +1070,7 @@ void PollInputEvents(void)
//----------------------------------------------------------------------------------
// Initialize platform: graphics, inputs and more
-static int InitPlatform(void)
+int InitPlatform(void)
{
// Initialize SDL internal global state
int result = SDL_Init(SDL_INIT_EVERYTHING);
@@ -1180,7 +1180,7 @@ static int InitPlatform(void)
return 0;
}
-static void ClosePlatform(void)
+void ClosePlatform(void)
{
SDL_FreeCursor(platform.cursor); // Free cursor
SDL_GL_DeleteContext(platform.glContext); // Deinitialize OpenGL context
@@ -1188,6 +1188,7 @@ static void ClosePlatform(void)
SDL_Quit(); // Deinitialize SDL internal global state
}
+
static KeyboardKey ConvertScancodeToKey(SDL_Scancode sdlScancode)
{
if (sdlScancode >= 0 && sdlScancode < SCANCODE_MAPPED_NUM)