KeyEventArgs
Summary
Provides data for keyboard press, release, and repeat events.
Definition
Namespace: SDT4.Managed.Input.Desktop.Events
Assembly: SDT4.Managed.Input.dll
struct KeyEventArgs
Implements:
IEquatable<KeyEventArgs>
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Sender |
Object? | The source object that dispatched the event (typically a |
public get; set; Key |
KeyCode | The platform-agnostic key code representing the physical or virtual key. |
public get; set; Modifiers |
InputModifiers | Bitfield flags indicating the state of keyboard modifier keys (e.g., Shift, Ctrl, Alt) at the time of the event. |
public get; set; IsRepeating |
Boolean | Indicates whether this event is an automatic key-repeat generated by holding down the key. |
public get; set; ScanCode |
Int32 | The platform-specific hardware scancode associated with the physical key. |
Methods
public virtual String ToString()
Returns:
public virtual Int32 GetHashCode()
Returns:
public virtual Boolean Equals(Object obj)
Parameters:
obj(Object):
Returns:
public Boolean Equals(KeyEventArgs other)
Parameters:
other(KeyEventArgs):
Returns:
public Void Deconstruct(out Object? Sender, out KeyCode Key, out InputModifiers Modifiers, out Boolean IsRepeating, out Int32 ScanCode)
Parameters:
-
Sender(Object?): -
Key(KeyCode): -
Modifiers(InputModifiers): -
IsRepeating(Boolean): -
ScanCode(Int32):