Table of Contents

Class RawInputEventArgs

Namespace
Avalonia.Input.Raw
Assembly
Avalonia.Base.dll

A raw input event.

[PrivateApi]
public class RawInputEventArgs : EventArgs
Inheritance
RawInputEventArgs
Derived
Inherited Members

Remarks

Raw input events are sent from the windowing subsystem to the InputManager for processing: this gives an application the opportunity to pre-process the event. After pre-processing they are consumed by the relevant Device and turned into standard Avalonia events.

Constructors

RawInputEventArgs(IInputDevice, ulong, IInputRoot)

Initializes a new instance of the RawInputEventArgs class.

public RawInputEventArgs(IInputDevice device, ulong timestamp, IInputRoot root)

Parameters

device IInputDevice

The associated device.

timestamp ulong

The event timestamp.

root IInputRoot

The root from which the event originates.

Properties

Device

Gets the associated device.

public IInputDevice Device { get; }

Property Value

IInputDevice

Handled

Gets or sets a value indicating whether the event was handled.

public bool Handled { get; set; }

Property Value

bool

Remarks

If an event is not marked handled after processing via the InputManager, then it will be passed on to the underlying OS for handling.

Root

Gets the root from which the event originates.

public IInputRoot Root { get; }

Property Value

IInputRoot

Timestamp

Gets the timestamp associated with the event.

public ulong Timestamp { get; set; }

Property Value

ulong