mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-12-16 02:55:44 +00:00
21 lines
437 B
C#
21 lines
437 B
C#
using Capy64.Extensions.Bindings;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Capy64.Core;
|
|
|
|
public class SDL
|
|
{
|
|
public static string GetClipboardText()
|
|
{
|
|
return SDL2.UTF8_ToManaged(SDL2.Native_SDL_GetClipboardText(), true);
|
|
}
|
|
|
|
public static bool HasClipboardText()
|
|
{
|
|
return SDL2.SDL_HasClipboardText() == 1;
|
|
}
|
|
}
|