Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
KeyboardInput.cs
浏览该文件的文档.
1namespace Engine.Input {
2 public class KeyboardInput {
3 public static List<char> Chars = [];
4 public static bool _DeletePressed;
5
6 public static bool DeletePressed {
7 get {
8 bool D = _DeletePressed;
9 if (D) {
10 _DeletePressed = false;
11 }
12 return D;
13 }
14 set => _DeletePressed = value;
15 }
16
17 public static string GetInput() {
18 if (Chars.Count > 0) {
19 string str = new(Chars.ToArray());
20 Chars.Clear();
21 return str;
22 }
23 return string.Empty;
24 }
25 }
26}