Переглянути джерело

_textEvents move new out of setup

Jean-David Moisan 6 роки тому
батько
коміт
482233ed55
1 змінених файлів з 1 додано та 3 видалено
  1. 1 3
      Source/InputHelper.cs

+ 1 - 3
Source/InputHelper.cs

@@ -141,8 +141,6 @@ namespace Apos.Input {
             if (e != null) {
                 Window.TextInput += processTextInput;
             }
-
-            _textEvents = new List<KeyCharacter>();
         }
         /// <summary>
         /// This function receives TextInput events from the game window.
@@ -203,6 +201,6 @@ namespace Apos.Input {
         /// <summary>
         /// Useful for handling text inputs from any keyboard layouts. This is useful when coding textboxes.
         /// </summary>
-        private static List<KeyCharacter> _textEvents;
+        private static List<KeyCharacter> _textEvents = new List<KeyCharacter>();
     }
 }