Class KeyEventArgs
Provides data for keyboard key related events.
Inherited Members
Namespace: Evergine.Common.Input.Keyboard
Assembly: Evergine.Common.dll
Syntax
public class KeyEventArgs : EventArgs
Constructors
KeyEventArgs(Keys, bool)
Initializes a new instance of the KeyEventArgs class.
Declaration
public KeyEventArgs(Keys key, bool isDown)
Parameters
Type | Name | Description |
---|---|---|
Keys | key | The key associated with the event. |
bool | isDown | If its a KeyDown or not. |
Properties
IsDown
Gets a value indicating whether the event was a KeyDown or not.
Declaration
public bool IsDown { get; }
Property Value
Type | Description |
---|---|
bool |
Key
Gets the key associated with the event.
Declaration
public Keys Key { get; }
Property Value
Type | Description |
---|---|
Keys |