#include <stdio.h>
#include "raylib.h"
int main()
{
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "Get Clipboard Example");
SetTargetFPS(60);
while (!WindowShouldClose())
{
BeginDrawing();
ClearBackground(RAYWHITE);
DrawText("Press Ctrl+C to copy text to clipboard", 100, 40, 20, LIGHTGRAY);
if (IsKeyPressed(KEY_LEFT_CONTROL) && IsKeyPressed(KEY_C))
{
const char* clipboardText = GetClipboardText();
printf("Clipboard content: %s\n", clipboardText);
free(clipboardText);
}
EndDrawing();
}
CloseWindow();
return 0;
}