Move SetExitKey from core to android, desktop, web

This commit is contained in:
ubkp
2023-09-23 18:14:36 -03:00
parent b3c2ff2905
commit 7a656ba477
4 changed files with 29 additions and 8 deletions

View File

@ -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)
{
#if !defined(PLATFORM_ANDROID)
CORE.Input.Keyboard.exitKey = key;
#endif
}
//// Set a custom key to exit program
//// NOTE: default exitKey is ESCAPE
//void SetExitKey(int key)
//{
//#if !defined(PLATFORM_ANDROID)
// CORE.Input.Keyboard.exitKey = key;
//#endif
//}
// NOTE: Gamepad support not implemented in emscripten GLFW3 (PLATFORM_WEB)