Extension methods for the KeyboardDevice class.
More...
Extension methods for the KeyboardDevice class.
◆ IsAnyModifierKeyDown()
static bool VolumeControl.Core.Extensions.KeyboardDeviceExtensions.IsAnyModifierKeyDown |
( |
this KeyboardDevice |
keyboard | ) |
|
|
static |
Checks if any modifier keys are pressed.
- Parameters
-
keyboard | (implicit) KeyboardDevice to check. |
- Returns
true
when at least one modifier key is pressed; otherwise false
.
◆ IsModifierKeyDown()
static bool VolumeControl.Core.Extensions.KeyboardDeviceExtensions.IsModifierKeyDown |
( |
this KeyboardDevice |
keyboard, |
|
|
EModifierKey |
modifierKey |
|
) |
| |
|
static |
Checks if the specified modifierKey is currently pressed on this keyboard device.
When modifierKey is EModifierKey.None, returns true
when no modifier keys are pressed.
- Parameters
-
keyboard | (implicit) KeyboardDevice to check. |
modifierKey | The EModifierKey to check. |
- Returns
true
when the specified modifier key is pressed; otherwise false
.
- Exceptions
-
InvalidOperationException | modifierKey was EModifierKey.NoRepeat. |
InvalidEnumArgumentException | modifierKey was not a valid single EModifierKey value. |
The documentation for this class was generated from the following file: