18 #include <SDL2/SDL_events.h>
19 #include <SDL2/SDL_clipboard.h>
21 #define CLIPBOARD_FUNCS_DEFINED
29 SDL_SetClipboardText(text.c_str());
34 char* clipboard = SDL_GetClipboardText();
39 const std::string result(clipboard);
void copy_to_clipboard(const std::string &text)
Copies text to the clipboard.
std::string copy_from_clipboard()
Copies text from the clipboard.