/// <summary> /// Clears the <see cref="KeysPressed"/>, <see cref="KeysDown"/>, <see cref="KeysReleased"/> collections. /// </summary> public void Clear() { KeysPressedInternal.Clear(); KeysDownInternal.Clear(); UnmappedVirtualKeysDown.Clear(); KeysReleasedInternal.Clear(); }
private void RemoveKeyDownAt(int i) { KeysDownInternal.RemoveAt(i); UnmappedVirtualKeysDown.RemoveAt(i); }
// Always use the next routines to add or remove keys from KeysDownInternal or // UnmappedVirtualKeysDown. This ensures that they stay parallel. private void AddKeyDown(AsciiKey key, Keys unmappedVirtualKey) { KeysDownInternal.Add(key); UnmappedVirtualKeysDown.Add(unmappedVirtualKey); }