Table of Contents

Class MouseDevice

Namespace
Avalonia.Input
Assembly
Avalonia.Base.dll

Represents a mouse device.

[PrivateApi]
public class MouseDevice : IMouseDevice, IPointerDevice, IInputDevice, IDisposable
Inheritance
MouseDevice
Implements
Inherited Members

Constructors

MouseDevice(Pointer?)

public MouseDevice(Pointer? pointer = null)

Parameters

pointer Pointer

Methods

Dispose()

public void Dispose()

ProcessRawEvent(RawInputEventArgs)

Processes raw event. Is called after preprocessing by InputManager

public void ProcessRawEvent(RawInputEventArgs e)

Parameters

e RawInputEventArgs

TryGetPointer(RawPointerEventArgs)

Gets a pointer for specific event args.

public IPointer? TryGetPointer(RawPointerEventArgs ev)

Parameters

ev RawPointerEventArgs

Raw pointer event args associated with the pointer.

Returns

IPointer

The pointer.

Remarks

If pointer doesn't exist or wasn't yet created this method will return null.