Class GorgonKeyStateCollection
Inherited Members
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public class GorgonKeyStateCollection : ICollection<KeyState>, IEnumerable<KeyState>, IEnumerable
Properties
| Edit this page View SourceCount
Gets the number of elements contained in the ICollection<T>.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int | The number of elements contained in the ICollection<T>. |
IsReadOnly
Gets a value indicating whether the ICollection<T> is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool | true if the ICollection<T> is read-only; otherwise, false. |
this[Keys]
Property to return the state of a given key.
Declaration
public KeyState this[Keys key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Keys | key | Key to check. |
Property Value
Type | Description |
---|---|
KeyState | The state of the key. |
Methods
| Edit this page View SourceGetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<KeyState> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<KeyState> | A IEnumerator<T> that can be used to iterate through the collection. |
Reset()
Function to reset the key states.
Declaration
public void Reset()
ResetModifiers()
Function to reset any modifier keys.
Declaration
public void ResetModifiers()