ADDED: GetClipboardText(), SetClipboardText()
This commit is contained in:
parent
6dbec47488
commit
e996fe2ff5
3 changed files with 21 additions and 3 deletions
17
src/core.c
17
src/core.c
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue