about summary refs log tree commit diff stats
path: root/AnodyneArchipelago/Menu
diff options
context:
space:
mode:
Diffstat (limited to 'AnodyneArchipelago/Menu')
-rw-r--r--AnodyneArchipelago/Menu/TextEntry.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/AnodyneArchipelago/Menu/TextEntry.cs b/AnodyneArchipelago/Menu/TextEntry.cs index 2bcdf1b..e13331a 100644 --- a/AnodyneArchipelago/Menu/TextEntry.cs +++ b/AnodyneArchipelago/Menu/TextEntry.cs
@@ -4,7 +4,6 @@ using AnodyneSharp.States;
4using AnodyneSharp.UI; 4using AnodyneSharp.UI;
5using Microsoft.Xna.Framework; 5using Microsoft.Xna.Framework;
6using Microsoft.Xna.Framework.Input; 6using Microsoft.Xna.Framework.Input;
7using System.Threading;
8 7
9namespace AnodyneArchipelago.Menu 8namespace AnodyneArchipelago.Menu
10{ 9{
@@ -49,13 +48,7 @@ namespace AnodyneArchipelago.Menu
49 } 48 }
50 else if (ch == 22) 49 else if (ch == 22)
51 { 50 {
52 string result = ""; 51 _value += SDL2.SDL.SDL_GetClipboardText();
53 Thread clipboardThread = new(() => result = System.Windows.Forms.Clipboard.GetText());
54 clipboardThread.SetApartmentState(ApartmentState.STA);
55 clipboardThread.Start();
56 clipboardThread.Join();
57
58 _value += result;
59 UpdateDisplay(); 52 UpdateDisplay();
60 } 53 }
61 else if (!char.IsControl(ch)) 54 else if (!char.IsControl(ch))