ADDED: GetClipboardText(), SetClipboardText()

This commit is contained in:
Ray
2019-02-11 18:03:06 +01:00
parent 6dbec47488
commit e996fe2ff5
3 changed files with 21 additions and 3 deletions

View File

@@ -984,6 +984,23 @@ const char *GetMonitorName(int monitor)
return "";
}
// Get clipboard text content
// NOTE: returned string is allocated and freed by GLFW
const char *GetClipboardText(void)
{
#if defined(PLATFORM_DESKTOP)
return glfwGetClipboardString(window);
#endif
}
// Set clipboard text content
void SetClipboardText(const char *text)
{
#if defined(PLATFORM_DESKTOP)
glfwSetClipboardString(window, text);
#endif
}
// Show mouse cursor
void ShowCursor(void)
{