[split] rcore, web, desktop, android changes (batch 5) (#3345)

* Move SetExitKey from core to android, desktop, web

* Move some callbacks from core to desktop and web

* Relocate emscripten callbacks on web

* Relocate android callbacks on android

* Revert "Relocate android callbacks on android"

This reverts commit bbdbecc01e.

* Updates UnloadVrStereoConfig on rcore

* Update SetClipboardText on android

* Fix screenMin/Max default values for android
This commit is contained in:
ubkp 2023-09-24 05:06:32 -03:00 • committed by GitHub
commit 4093775007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,11 +136,11 @@ static bool InitGraphicsDevice(int width, int height)
CORE.Window.screen.height = height; // User desired height
CORE.Window.screenScale = MatrixIdentity(); // No draw scaling required by default
// Set the window minimum and maximum default values to 0
CORE.Window.windowMin.width = 0;
CORE.Window.windowMin.height = 0;
CORE.Window.windowMax.width = 0;
CORE.Window.windowMax.height = 0;
// Set the screen minimum and maximum default values to 0
CORE.Window.screenMin.width = 0;
CORE.Window.screenMin.height = 0;
CORE.Window.screenMax.width = 0;
CORE.Window.screenMax.height = 0;
// NOTE: Framebuffer (render area - CORE.Window.render.width, CORE.Window.render.height) could include black bars...
// ...in top-down or left-right to match display aspect ratio (no weird scaling)
@ -928,6 +928,7 @@ const char *GetMonitorName(int monitor)
// Set clipboard text content
void SetClipboardText(const char *text)
{
TRACELOG(LOG_INFO, "SetClipboardText not implemented in rcore_android.c");
}
@ -1049,6 +1050,13 @@ int GetMonitorPhysicalWidth(int monitor)
return 0;
}
// Set a custom key to exit program
// NOTE: default exitKey is ESCAPE
void SetExitKey(int key)
{
TRACELOG(LOG_INFO, "SetExitKey not implemented in rcore_android.c");
}
// Get gamepad internal name id
const char *GetGamepadName(int gamepad)
{