private void KeyDown(Veldrid.Platform.Key Key) { if (_currentlyPressedKeys.Add(Key)) { _newKeysThisFrame.Add(Key); } }
public bool GetKeyDown(Veldrid.Platform.Key Key) { return(_newKeysThisFrame.Contains(Key)); }
private void KeyUp(Veldrid.Platform.Key Key) { _currentlyPressedKeys.Remove(Key); _newKeysThisFrame.Remove(Key); }
public bool GetKey(Veldrid.Platform.Key Key) { return(_currentlyPressedKeys.Contains(Key)); }