Skip to main content

PhysicalKeyFromVirtualKey Method

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

Definition

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

public static PhysicalKey PhysicalKeyFromVirtualKey(
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

PhysicalKey
An Avalonia physical key, or None if none matched.

See Also

Reference

KeyInterop Class
Avalonia.Win32.Input Namespace