Make ctrl+x cut to clipboard

This commit is contained in:
Kevin Azzam
2015-10-10 13:49:23 +02:00
parent fdf993ddda
commit 96c0c2dec6
6 changed files with 31 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ namespace OpenRA.Platforms.Default
MouseButton lastButtonBits = (MouseButton)0;
public string GetClipboardText() { return SDL.SDL_GetClipboardText(); }
public bool SetClipboardText(string text) { return SDL.SDL_SetClipboardText(text) == 0; }
static MouseButton MakeButton(byte b)
{
@@ -177,4 +178,4 @@ namespace OpenRA.Platforms.Default
ErrorHandler.CheckGlError();
}
}
}
}