Class RawInputEventArgs
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
IInputDeviceThe associated device.
timestamp
ulongThe event timestamp.
root
IInputRootThe root from which the event originates.
Properties
Device
Gets the associated device.
public IInputDevice Device { get; }
Property Value
Handled
Gets or sets a value indicating whether the event was handled.
public bool Handled { get; set; }
Property Value
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
Timestamp
Gets the timestamp associated with the event.
public ulong Timestamp { get; set; }