Gorgon
Show / Hide Table of Contents

Class GorgonKeyStateCollection

A list containing the current KeyState for each key in the Keys enumeration.

Inheritance
object
GorgonKeyStateCollection
Implements
ICollection<KeyState>
IEnumerable<KeyState>
IEnumerable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Gorgon.Input
Assembly: Gorgon.Input.dll
Syntax
public class GorgonKeyStateCollection : ICollection<KeyState>, IEnumerable<KeyState>, IEnumerable

Properties

| Edit this page View Source

Count

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>.

| Edit this page View Source

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.

| Edit this page View Source

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 Source

GetEnumerator()

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.

| Edit this page View Source

Reset()

Function to reset the key states.

Declaration
public void Reset()
| Edit this page View Source

ResetModifiers()

Function to reset any modifier keys.

Declaration
public void ResetModifiers()

Implements

ICollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author