Pārlūkot izejas kodu

Move SetExitKey from core to android, desktop, web

pull/3345/head
ubkp pirms 2 gadiem
vecāks
revīzija
7a656ba477
4 mainītis faili ar 29 papildinājumiem un 8 dzēšanām
  1. +8
    -8
      src/rcore.c
  2. +7
    -0
      src/rcore_android.c
  3. +7
    -0
      src/rcore_desktop.c
  4. +7
    -0
      src/rcore_web.c

+ 8
- 8
src/rcore.c Parādīt failu

@ -1937,14 +1937,14 @@ int GetCharPressed(void)
return value;
}
// Set a custom key to exit program
// NOTE: default exitKey is ESCAPE
void SetExitKey(int key)
{
cp">#if !defined(PLATFORM_ANDROID)
CORE.Input.Keyboard.exitKey = key;
cp">#endif
}
//// Set a custom key to exit program
//// NOTE: default exitKey is ESCAPE
//void SetExitKey(int key)
//{
o">//#if !defined(PLATFORM_ANDROID)
// CORE.Input.Keyboard.exitKey = key;
o">//#endif
//}
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)

+ 7
- 0
src/rcore_android.c Parādīt failu

@ -1049,6 +1049,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)
{

+ 7
- 0
src/rcore_desktop.c Parādīt failu

@ -1512,6 +1512,13 @@ int GetMonitorPhysicalWidth(int monitor)
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
const char *GetGamepadName(int gamepad)
{

+ 7
- 0
src/rcore_web.c Parādīt failu

@ -1041,6 +1041,13 @@ int GetMonitorPhysicalWidth(int monitor)
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)
// Get gamepad internal name id

Notiek ielāde…
Atcelt
Saglabāt