示例#1
0
 private void KeyDown(Veldrid.Platform.Key Key)
 {
     if (_currentlyPressedKeys.Add(Key))
     {
         _newKeysThisFrame.Add(Key);
     }
 }
示例#2
0
 public bool GetKeyDown(Veldrid.Platform.Key Key)
 {
     return(_newKeysThisFrame.Contains(Key));
 }
示例#3
0
 private void KeyUp(Veldrid.Platform.Key Key)
 {
     _currentlyPressedKeys.Remove(Key);
     _newKeysThisFrame.Remove(Key);
 }
示例#4
0
 public bool GetKey(Veldrid.Platform.Key Key)
 {
     return(_currentlyPressedKeys.Contains(Key));
 }