Struct KeyboardState
Inherited Members
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Assembly: Inferno.Desktop.dll
public struct KeyboardState
Constructors
|
Improve this Doc
View Source
Declaration
public KeyboardState(List<Key> keys, bool capsLock = false, bool numLock = false)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Key> |
keys |
|
System.Boolean |
capsLock |
|
System.Boolean |
numLock |
|
Properties
|
Improve this Doc
View Source
Declaration
public bool CapsLock { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public KeyState this[Key key] { get; }
Parameters
Type |
Name |
Description |
Key |
key |
|
Property Value
|
Improve this Doc
View Source
Declaration
public bool NumLock { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
Declaration
public bool IsKeyDown(Key key)
Parameters
Type |
Name |
Description |
Key |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public bool IsKeyUp(Key key)
Parameters
Type |
Name |
Description |
Key |
key |
|
Returns
Type |
Description |
System.Boolean |
|
Operators
|
Improve this Doc
View Source
Declaration
public static bool operator ==(KeyboardState a, KeyboardState b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public static bool operator !=(KeyboardState a, KeyboardState b)
Parameters
Returns
Type |
Description |
System.Boolean |
|