示例#1
0
 /// <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();
 }
示例#2
0
 private void RemoveKeyDownAt(int i)
 {
     KeysDownInternal.RemoveAt(i);
     UnmappedVirtualKeysDown.RemoveAt(i);
 }
示例#3
0
 // 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);
 }