Skip to main content

KeyFromVirtualKey Method

Gets an Avalonia key from a Windows virtual-key and key data.

Definition

Namespace: Avalonia.Win32.Input
Assembly: Avalonia.Win32 (in Avalonia.Win32.dll)

public static Key KeyFromVirtualKey(
int virtualKey,
int keyData
)

Parameters

  Int32
The Windows virtual-key.
  Int32
The key data (in the same format as lParam for WM_KEYDOWN).

Return Value

Key
An Avalonia key, or None if none matched.

See Also

Reference

KeyInterop Class
Avalonia.Win32.Input Namespace