Table of Contents

Class RawKeyEventArgs

Namespace
Avalonia.Input.Raw
Assembly
Avalonia.Base.dll
[PrivateApi]
public class RawKeyEventArgs : RawInputEventArgs
Inheritance
RawKeyEventArgs
Inherited Members

Constructors

RawKeyEventArgs(IInputDevice, ulong, IInputRoot, RawKeyEventType, Key, RawInputModifiers, PhysicalKey, KeyDeviceType, string?)

public RawKeyEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, RawKeyEventType type, Key key, RawInputModifiers modifiers, PhysicalKey physicalKey, KeyDeviceType keyDeviceType, string? keySymbol)

Parameters

device IInputDevice
timestamp ulong
root IInputRoot
type RawKeyEventType
key Key
modifiers RawInputModifiers
physicalKey PhysicalKey
keyDeviceType KeyDeviceType
keySymbol string

RawKeyEventArgs(IInputDevice, ulong, IInputRoot, RawKeyEventType, Key, RawInputModifiers, PhysicalKey, string?)

public RawKeyEventArgs(IInputDevice device, ulong timestamp, IInputRoot root, RawKeyEventType type, Key key, RawInputModifiers modifiers, PhysicalKey physicalKey, string? keySymbol)

Parameters

device IInputDevice
timestamp ulong
root IInputRoot
type RawKeyEventType
key Key
modifiers RawInputModifiers
physicalKey PhysicalKey
keySymbol string

RawKeyEventArgs(IKeyboardDevice, ulong, IInputRoot, RawKeyEventType, Key, RawInputModifiers)

[Obsolete("Use the overload that takes a physical key and key symbol instead.")]
public RawKeyEventArgs(IKeyboardDevice device, ulong timestamp, IInputRoot root, RawKeyEventType type, Key key, RawInputModifiers modifiers)

Parameters

device IKeyboardDevice
timestamp ulong
root IInputRoot
type RawKeyEventType
key Key
modifiers RawInputModifiers

Properties

Key

public Key Key { get; set; }

Property Value

Key

KeyDeviceType

public KeyDeviceType KeyDeviceType { get; set; }

Property Value

KeyDeviceType

KeySymbol

public string? KeySymbol { get; set; }

Property Value

string

Modifiers

public RawInputModifiers Modifiers { get; set; }

Property Value

RawInputModifiers

PhysicalKey

public PhysicalKey PhysicalKey { get; set; }

Property Value

PhysicalKey

Type

public RawKeyEventType Type { get; set; }

Property Value

RawKeyEventType