diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 16:56:30 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2024-05-26 16:56:30 -0400 |
commit | 2c0101c46fdd686e85808224f6edca9bc6bab4a2 (patch) | |
tree | 3b634722f04a08ed6eca139115685a5dcd3e49cb | |
parent | 73db3c666e078db25c3af6e54f2db066523e4298 (diff) | |
download | anodyne-archipelago-2c0101c46fdd686e85808224f6edca9bc6bab4a2.tar.gz anodyne-archipelago-2c0101c46fdd686e85808224f6edca9bc6bab4a2.tar.bz2 anodyne-archipelago-2c0101c46fdd686e85808224f6edca9bc6bab4a2.zip |
-rw-r--r-- | AnodyneArchipelago/AnodyneArchipelago.csproj | 1 | ||||
-rw-r--r-- | AnodyneArchipelago/Menu/TextEntry.cs | 9 |
2 files changed, 1 insertions, 9 deletions
diff --git a/AnodyneArchipelago/AnodyneArchipelago.csproj b/AnodyneArchipelago/AnodyneArchipelago.csproj index 2edb613..a750332 100644 --- a/AnodyneArchipelago/AnodyneArchipelago.csproj +++ b/AnodyneArchipelago/AnodyneArchipelago.csproj | |||
@@ -47,6 +47,5 @@ | |||
47 | <Reference Include="System.ValueTuple"> | 47 | <Reference Include="System.ValueTuple"> |
48 | <HintPath>..\..\BepInEx\bin\NET.Framework\net462\System.ValueTuple.dll</HintPath> | 48 | <HintPath>..\..\BepInEx\bin\NET.Framework\net462\System.ValueTuple.dll</HintPath> |
49 | </Reference> | 49 | </Reference> |
50 | <Reference Include="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
51 | </ItemGroup> | 50 | </ItemGroup> |
52 | </Project> | 51 | </Project> |
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; | |||
4 | using AnodyneSharp.UI; | 4 | using AnodyneSharp.UI; |
5 | using Microsoft.Xna.Framework; | 5 | using Microsoft.Xna.Framework; |
6 | using Microsoft.Xna.Framework.Input; | 6 | using Microsoft.Xna.Framework.Input; |
7 | using System.Threading; | ||
8 | 7 | ||
9 | namespace AnodyneArchipelago.Menu | 8 | namespace 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)) |