KeyEvent Class
Namespace: Stride.InputAssembly: Stride.Input.dll
Event for a keyboard button changing state
Derived from KeyEvent:
public class KeyEvent : ButtonEvent, IInputEventArgs
| Name | Description | |
|---|---|---|
| Fields | ||
| Key | The key that is being pressed or released. |
|
| RepeatCount | The repeat count for this key. If it is 0 this is the initial press of the key |
|
| Properties | ||
| Keyboard | The keyboard that sent this event |
|
| Methods | ||
| ToString() | ||
Fields
Key
The key that is being pressed or released.
public Keys Key
Field Value
| Type | Description |
|---|---|
| Keys |
RepeatCount
The repeat count for this key. If it is 0 this is the initial press of the key
public int RepeatCount
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
Keyboard
The keyboard that sent this event
public IKeyboardDevice Keyboard { get; }
Property Value
| Type | Description |
|---|---|
| IKeyboardDevice |
Methods
ToString()
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()