KeyboardDeviceExtensions Class
Namespace: Stride.InputAssembly: Stride.Input.dll
System.Object →
KeyboardDeviceExtensions
Derived from KeyboardDeviceExtensions:
public static class KeyboardDeviceExtensions
| Name | Description | |
|---|---|---|
| Methods | ||
| IsKeyDown(IKeyboardDevice, Keys) | Determines whether the specified key is being pressed down |
|
| IsKeyPressed(IKeyboardDevice, Keys) | Determines whether the specified key is pressed since the previous update. |
|
| IsKeyReleased(IKeyboardDevice, Keys) | Determines whether the specified key is released since the previous update. |
|
Methods
IsKeyDown(IKeyboardDevice, Keys)
Determines whether the specified key is being pressed down
public static bool IsKeyDown(this IKeyboardDevice keyboardDevice, Keys key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKeyboardDevice | keyboardDevice | The keyboard |
| Keys | key | The key |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsKeyPressed(IKeyboardDevice, Keys)
Determines whether the specified key is pressed since the previous update.
public static bool IsKeyPressed(this IKeyboardDevice keyboardDevice, Keys key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKeyboardDevice | keyboardDevice | The keyboard |
| Keys | key | The key |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|
IsKeyReleased(IKeyboardDevice, Keys)
Determines whether the specified key is released since the previous update.
public static bool IsKeyReleased(this IKeyboardDevice keyboardDevice, Keys key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKeyboardDevice | keyboardDevice | The keyboard |
| Keys | key | The key |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|