Description
The KeyboardModifiers
property provides access to the current state of keyboard modifier keys, such as Ctrl, Shift, and Alt. This property is useful for determining which modifier keys are being pressed at any given time, allowing for more complex input handling in applications that utilize the Gizmo
class.
Usage
To access the current keyboard modifiers, simply reference the Gizmo.KeyboardModifiers
property. This property is static, so it can be accessed without an instance of the Gizmo
class.
Example
// Example of checking if the Ctrl key is pressed using KeyboardModifiers
if (Gizmo.KeyboardModifiers.HasFlag(KeyboardModifiers.Control))
{
// Perform action when Ctrl is pressed
}