예제 #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));
 }