Merge pull request #9582 from ChaoticMind/ctrl_backspace

Implement some keyboard hotkeys for chat (TextFieldWidget)
This commit is contained in:
abcdefg30
2015-11-18 20:48:05 +01:00
6 changed files with 202 additions and 70 deletions

View File

@@ -382,6 +382,12 @@ namespace OpenRA.Platforms.Default
return input.GetClipboardText();
}
public bool SetClipboardText(string text)
{
VerifyThreadAffinity();
return input.SetClipboardText(text);
}
public IVertexBuffer<Vertex> CreateVertexBuffer(int size)
{
VerifyThreadAffinity();

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();
}
}
}
}