Add GetGamepadGUID for PLATFORM_DESKTOP_GLFW

This commit is contained in:
asdqwe 2025-01-27 18:02:16 -03:00
commit 730371aafb

View file

@ -162,13 +162,13 @@ bool WindowShouldClose(void)
// REF: https://emscripten.org/docs/porting/asyncify.html
// WindowShouldClose() is not called on a web-ready raylib application if using emscripten_set_main_loop()
// and encapsulating one frame execution on a UpdateDrawFrame() function,
// and encapsulating one frame execution on a UpdateDrawFrame() function,
// allowing the browser to manage execution asynchronously
// Optionally we can manage the time we give-control-back-to-browser if required,
// but it seems below line could generate stuttering on some browsers
emscripten_sleep(12);
return false;
}
@ -914,6 +914,13 @@ int SetGamepadMappings(const char *mappings)
return 0;
}
// Get gamepad GUID
const char *GetGamepadGUID(int gamepad)
{
TRACELOG(LOG_WARNING, "GetGamepadGUID() not implemented on target platform");
return "";
}
// Set gamepad vibration
void SetGamepadVibration(int gamepad, float leftMotor, float rightMotor, float duration)
{