mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-15 06:16:01 +00:00
Move SetExitKey from core to android, desktop, web
This commit is contained in:
16
src/rcore.c
16
src/rcore.c
@@ -1937,14 +1937,14 @@ int GetCharPressed(void)
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set a custom key to exit program
|
//// Set a custom key to exit program
|
||||||
// NOTE: default exitKey is ESCAPE
|
//// NOTE: default exitKey is ESCAPE
|
||||||
void SetExitKey(int key)
|
//void SetExitKey(int key)
|
||||||
{
|
//{
|
||||||
#if !defined(PLATFORM_ANDROID)
|
//#if !defined(PLATFORM_ANDROID)
|
||||||
CORE.Input.Keyboard.exitKey = key;
|
// CORE.Input.Keyboard.exitKey = key;
|
||||||
#endif
|
//#endif
|
||||||
}
|
//}
|
||||||
|
|
||||||
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)
|
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)
|
||||||
|
|
||||||
|
@@ -1049,6 +1049,13 @@ int GetMonitorPhysicalWidth(int monitor)
|
|||||||
return 0;
|
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
|
// Get gamepad internal name id
|
||||||
const char *GetGamepadName(int gamepad)
|
const char *GetGamepadName(int gamepad)
|
||||||
{
|
{
|
||||||
|
@@ -1512,6 +1512,13 @@ int GetMonitorPhysicalWidth(int monitor)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set a custom key to exit program
|
||||||
|
// NOTE: default exitKey is ESCAPE
|
||||||
|
void SetExitKey(int key)
|
||||||
|
{
|
||||||
|
CORE.Input.Keyboard.exitKey = key;
|
||||||
|
}
|
||||||
|
|
||||||
// Get gamepad internal name id
|
// Get gamepad internal name id
|
||||||
const char *GetGamepadName(int gamepad)
|
const char *GetGamepadName(int gamepad)
|
||||||
{
|
{
|
||||||
|
@@ -1041,6 +1041,13 @@ int GetMonitorPhysicalWidth(int monitor)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set a custom key to exit program
|
||||||
|
// NOTE: default exitKey is ESCAPE
|
||||||
|
void SetExitKey(int key)
|
||||||
|
{
|
||||||
|
CORE.Input.Keyboard.exitKey = key;
|
||||||
|
}
|
||||||
|
|
||||||
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)
|
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)
|
||||||
|
|
||||||
// Get gamepad internal name id
|
// Get gamepad internal name id
|
||||||
|
Reference in New Issue
Block a user